"use client"; import { Chip } from "@azmr/ui/display"; import { useState } from "react"; export default function DisplayChips() { const [tags, setTags] = useState(["React", "Accessibility", "Tailwind", "Base UI"]); // The Chip does not hide itself: you own the list. return (
{tags.map((tag) => ( setTags((all) => all.filter((t) => t !== tag))} > {tag} ))} {tags.length === 0 && No tags left.}
); }