Feedback
Tag
A removable label (filters, chosen items).
import { Tag } from "@percentsa/ui";Examples
DesignWebRiyadh
Code
export function TagExample() {
const t = useT();
const [tags, setTags] = useState([t("Design", "تصميم"), t("Web", "ويب"), t("Riyadh", "الرياض")]);
return (
<Inline gap={2}>
{tags.map((tag) => (
<Tag key={tag} onRemove={() => setTags(tags.filter((x) => x !== tag))}>
{tag}
</Tag>
))}
</Inline>
);
}