variant- Type
"default" | "filter" | "action" | "input"- Default
"default"- Description
- Semantic visual styling variant.
Search for a command to run...
Components / Inputs
சில்லுகள்
Chips are compact, interactive elements that represent an attribute, action, filter, or input. They allow users to make selections and filter content.
சில்லுகள் என்பவை தேர்வுகள், வடிகட்டிகள் அல்லது உள்ளீடுகளைக் குறிக்கும் சிறிய ஊடாடும் பொத்தான்கள் ஆகும்.
Filter chips represent options that can be toggled to filter content. Multiple chips can be selected at the same time.
Choice chips allow selecting a single choice from a set. Selection of one chip clears previous selection.
Input chips represent discrete pieces of information. They include a trailing close button to allow removing them.
Disabled chips are unclickable and visually muted. Apply to chips when their action is temporarily unavailable.
4 parts documented for implementation and review.
<div>Pill-shaped wrapper with fully rounded corners (rounded-full) to match premium pill targets. Includes safe vertical padding to prevent Tamil script vertical clipping. Uses role='checkbox' with aria-checked for toggleable chips.
Optional icon providing additional context, scaled to 14x14px.
Bilingual or script-localized text representing the attribute, filter, or value.
Available on input/dismissible chips to trigger item deletion. Has aria-label='Remove chip' for screen readers.
variant"default" | "filter" | "action" | "input""default"selectedbooleanfalseonSelectedChange(selected: boolean) => voidonClose() => voidiconReact.ReactNode| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "filter" | "action" | "input" | "default" | Semantic visual styling variant. |
selected | boolean | false | Whether the chip is active/selected. |
onSelectedChange | (selected: boolean) => void | - | Callback triggered when the chip's selection state changes. Enables role='checkbox' semantics. |
onClose | () => void | - | If provided, renders a dismiss icon on the right and binds the delete click. |
icon | React.ReactNode | - | Optional leading icon slot. |
onSelectedChange) use role="checkbox" and aria-checked to communicate state to screen readers.role="button" and are keyboard-activatable with Enter and Space.aria-label="Remove chip" for clear screen reader announcements.tabIndex=0 for keyboard focus access.font-tamil class for proper glyph rendering.Use chips to let users quickly toggle, add, or delete filters dynamically in content search pages.
தேடல்களில் வடிகட்டுதலை எளிமையாக்கச் சில்லுகளைப் பயன்படுத்தவும்.
Chips are for context filtering or input values. Use standard Tab components or Navigation menu links for main navigation.
வழிசெலுத்தலுக்கு தாவல் (Tabs) கூறுகளைப் பயன்படுத்துங்கள், சில்லுகளை அல்ல.
Short labels are scannable and fit well on mobile screens. Use truncation or abbreviations for long text.
குறுகிய உரைகள் எளிதாகப் படிக்கக்கூடியவை மற்றும் கைபேசி திரைகளில் நன்கு பொருந்தும்.
Binary settings like 'Enable dark mode' should use a Switch component. Chips are for multi-select filtering, not single toggles.
இருமம் அமைப்புகளுக்கு Switch கூறு பயன்படுத்தவும். சில்லுகள் பல தேர்வு வடிகட்டலுக்கானவை.