Skip to content

ZTag

Colored tag labels

Example

Label

Import

tsx
import { ZTag } from "zurto-ui";

Usage

tsx
import { ZTag } from "zurto-ui";

function Example() {
  return (
    <>
      <ZTag color="red">React</ZTag>
      <ZTag color="blue">TypeScript</ZTag>
      <ZTag color="green">Vue</ZTag>
      <ZTag color="purple">Svelte</ZTag>
    </>
  );
}

Props

PropTypeDefaultDescription
colorstring'gray'Tag color
closablebooleanfalseShow close button
onClose() => void-Close handler

Accessibility

  • ✅ Keyboard navigation support
  • ✅ ARIA attributes included
  • ✅ Screen reader friendly
  • ✅ Focus management

Released under the MIT License.