Getting Started
  • Installation
Components
  • Alert
  • Badge
  • Button
  • Card
  • Checkbox
  • Drawer
  • Dropdown
  • Input
  • Modal
  • Overlay
  • Radio
  • Switch
  • Tabs
  • Tag
  • Toast
Advanced Components
  • Searchable Select
  • Datatable (Beta)
Tabs
Toast

    Tag #

    Standard tag component for categorize content

    import { PTag } from 'pearkit';

    Basic #

    Label of the tag is defined with the label property.

    New
    <PTag label="New" />

    Colors #

    Since we use the tailwind color palette in our design, you can use the names of all tailwind colors as props. For example : sky red indigo

    NewNewNew
    <PTag color="orange" />

    Rounded #

    Enabling rounded, displays a tag as a fully rounded

    New
    <PTag rounded />

    Icon #

    You can add a tag icon by passing an icon component to the icon property.

    New
    <PTag icon={<Icon icon="mdi:check"/>} />

    Accessibility (Not Ready Yet) #

    None

    Api #

    Here you can see all the working features for the tag component.

    NameTypeDefaultDescription
    labelstringnullLabel of the component
    colorTwColorblueColors of the component
    roundedbooleantrueFully rounded design of the component
    iconReactNodenullIcon component of the tag component