Web 0.2.0
Verified
- Defaultlight5.00 : 1AA 4.5dark7.36 : 1AA 4.5
- measured on 0.2.0
npx shadcn@latest add @maeso/state-chip- Size
- 19.1 kB gzipmeasured on 0.2.0
- First install
- Add the registry once
Usage
Show the current state with its visible label. Keep the state synchronized with the record it describes.
Accessibility
Retain the text label; colour alone cannot identify the state. Announce changes only when they affect the current task.
When to use
Use for a compact named state beside a record. Use Callout when the state needs explanation or recovery.
Install
Add this registry to your project's components.json once, before the first install. Keep your existing settings and other registries.
{
"registries": {
"@maeso": "http://127.0.0.1:4321/r/{name}.json"
}
}Then install the registry's default theme once, and import its sheet in the CSS entry that imports Tailwind. It paints every item from this registry.
npx shadcn@latest add @maeso/maeso@import "./styles/theme.web.css";npx shadcn@latest add @maeso/state-chipProps
StateChip
| Prop | Type | Required | Description |
|---|---|---|---|
| label | string | yes | Required — colour never carries meaning alone. Always plain business language ("Sent back for changes"), never engine vocabulary ("gate refused"). |
| icon | "activity" | "adjustments-horizontal" | "alert-triangle" | "app-window" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "arrow-up-right" | "arrows-diagonal" | "arrows-diagonal-minimize-2" | "at" | "award" | "bell" | "calendar" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "circle" | "circle-check" | "circle-dashed" | "circle-dot" | "circle-help" | "circle-pause" | "circle-play" | "circle-slash" | "click" | "clipboard-check" | "clock" | "compass" | "copy" | "corner-down-right" | "corner-up-left" | "cpu" | "device-mobile" | "device-tablet" | "dots" | "download" | "eraser" | "external-link" | "eye" | "file" | "file-pen" | "file-plus" | "file-text" | "folder" | "git-branch" | "globe" | "grip-vertical" | "history" | "inbox" | "info" | "info-circle" | "keyboard" | "layout-grid" | "link" | "list" | "list-checks" | "lock" | "log-out" | "marquee-2" | "message-2" | "message-square" | "minus" | "monitor" | "moon" | "note" | "octagon-x" | "panel-left-close" | "panel-left-open" | "paperclip" | "pencil" | "play" | "plug" | "plus" | "pointer" | "refresh-cw" | "rotate-cw" | "route" | "scale" | "search" | "settings" | "shield-check" | "slash" | "square" | "square-half" | "sun" | "terminal-2" | "trash" | "triangle-alert" | "unplug" | "upload" | "user" | "user-round" | "user-round-check" | "users" | "wallet" | "workflow" | "wrap-text" | "x" | undefined | no | Override the role's glyph. On `active` it shows first, then folds into the Pair. |
| role | AriaRole | StateChipRole | undefined | no | |
| state | StateChipRole | undefined | no | |
| style | CSSProperties | undefined | no |
Also accepts every <span> attribute277 props
| Prop | Type | Required | Description |
|---|---|---|---|
| about | string | undefined | no | |
| accessKey | string | undefined | no | |
| aria-activedescendant | string | undefined | no | Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. |
| aria-atomic | Booleanish | undefined | no | Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. |
| aria-autocomplete | "both" | "inline" | "list" | "none" | undefined | no | Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made. |
| aria-braillelabel | string | undefined | no | Defines a string value that labels the current element, which is intended to be converted into Braille. |
| aria-brailleroledescription | string | undefined | no | Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille. |
| aria-busy | Booleanish | undefined | no | |
| aria-checked | "false" | "mixed" | "true" | boolean | undefined | no | Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. |
| aria-colcount | number | undefined | no | Defines the total number of columns in a table, grid, or treegrid. |
| aria-colindex | number | undefined | no | Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. |
| aria-colindextext | string | undefined | no | Defines a human readable text alternative of aria-colindex. |
| aria-colspan | number | undefined | no | Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. |
| aria-controls | string | undefined | no | Identifies the element (or elements) whose contents or presence are controlled by the current element. |
| aria-current | "date" | "false" | "location" | "page" | "step" | "time" | "true" | boolean | undefined | no | Indicates the element that represents the current item within a container or set of related elements. |
| aria-describedby | string | undefined | no | Identifies the element (or elements) that describes the object. |
| aria-description | string | undefined | no | Defines a string value that describes or annotates the current element. |
| aria-details | string | undefined | no | Identifies the element that provides a detailed, extended description for the object. |
| aria-disabled | Booleanish | undefined | no | Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. |
| aria-dropeffect | "copy" | "execute" | "link" | "move" | "none" | "popup" | undefined | no | Indicates what functions can be performed when a dragged object is released on the drop target. |
| aria-errormessage | string | undefined | no | Identifies the element that provides an error message for the object. |
| aria-expanded | Booleanish | undefined | no | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. |
| aria-flowto | string | undefined | no | Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order. |
| aria-grabbed | Booleanish | undefined | no | Indicates an element's "grabbed" state in a drag-and-drop operation. |
| aria-haspopup | "dialog" | "false" | "grid" | "listbox" | "menu" | "tree" | "true" | boolean | undefined | no | Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. |
| aria-hidden | Booleanish | undefined | no | Indicates whether the element is exposed to an accessibility API. |
| aria-invalid | "false" | "grammar" | "spelling" | "true" | boolean | undefined | no | Indicates the entered value does not conform to the format expected by the application. |
| aria-keyshortcuts | string | undefined | no | Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. |
| aria-label | string | undefined | no | Defines a string value that labels the current element. |
| aria-labelledby | string | undefined | no | Identifies the element (or elements) that labels the current element. |
| aria-level | number | undefined | no | Defines the hierarchical level of an element within a structure. |
| aria-live | "assertive" | "off" | "polite" | undefined | no | Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. |
| aria-modal | Booleanish | undefined | no | Indicates whether an element is modal when displayed. |
| aria-multiline | Booleanish | undefined | no | Indicates whether a text box accepts multiple lines of input or only a single line. |
| aria-multiselectable | Booleanish | undefined | no | Indicates that the user may select more than one item from the current selectable descendants. |
| aria-orientation | "horizontal" | "vertical" | undefined | no | Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. |
| aria-owns | string | undefined | no | Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. |
| aria-placeholder | string | undefined | no | Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. |
| aria-posinset | number | undefined | no | Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
| aria-pressed | "false" | "mixed" | "true" | boolean | undefined | no | Indicates the current "pressed" state of toggle buttons. |
| aria-readonly | Booleanish | undefined | no | Indicates that the element is not editable, but is otherwise operable. |
| aria-relevant | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | no | Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. |
| aria-required | Booleanish | undefined | no | Indicates that user input is required on the element before a form may be submitted. |
| aria-roledescription | string | undefined | no | Defines a human-readable, author-localized description for the role of an element. |
| aria-rowcount | number | undefined | no | Defines the total number of rows in a table, grid, or treegrid. |
| aria-rowindex | number | undefined | no | Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. |
| aria-rowindextext | string | undefined | no | Defines a human readable text alternative of aria-rowindex. |
| aria-rowspan | number | undefined | no | Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. |
| aria-selected | Booleanish | undefined | no | Indicates the current "selected" state of various widgets. |
| aria-setsize | number | undefined | no | Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
| aria-sort | "ascending" | "descending" | "none" | "other" | undefined | no | Indicates if items in a table or grid are sorted in ascending or descending order. |
| aria-valuemax | number | undefined | no | Defines the maximum allowed value for a range widget. |
| aria-valuemin | number | undefined | no | Defines the minimum allowed value for a range widget. |
| aria-valuenow | number | undefined | no | Defines the current value for a range widget. |
| aria-valuetext | string | undefined | no | Defines the human readable text alternative of aria-valuenow for a range widget. |
| autoCapitalize | "characters" | "none" | "off" | "on" | "sentences" | "words" | (string & {}) | undefined | no | |
| autoCorrect | string | undefined | no | |
| autoFocus | boolean | undefined | no | |
| autoSave | string | undefined | no | |
| children | ReactNode | no | |
| className | string | undefined | no | |
| color | string | undefined | no | |
| content | string | undefined | no | |
| contentEditable | "inherit" | "plaintext-only" | Booleanish | undefined | no | |
| contextMenu | string | undefined | no | |
| dangerouslySetInnerHTML | { __html: string | TrustedHTML; } | undefined | no | |
| datatype | string | undefined | no | |
| defaultChecked | boolean | undefined | no | |
| defaultValue | string | number | readonly string[] | undefined | no | |
| dir | string | undefined | no | |
| draggable | Booleanish | undefined | no | |
| enterKeyHint | "done" | "enter" | "go" | "next" | "previous" | "search" | "send" | undefined | no | |
| exportparts | string | undefined | no | |
| hidden | boolean | undefined | no | |
| id | string | undefined | no | |
| inert | boolean | undefined | no | |
| inlist | any | no | |
| inputMode | "decimal" | "email" | "none" | "numeric" | "search" | "tel" | "text" | "url" | undefined | no | Hints at the type of data that might be entered by the user while editing the element or its contents |
| is | string | undefined | no | Specify that a standard HTML element should behave like a defined custom built-in element |
| itemID | string | undefined | no | |
| itemProp | string | undefined | no | |
| itemRef | string | undefined | no | |
| itemScope | boolean | undefined | no | |
| itemType | string | undefined | no | |
| lang | string | undefined | no | |
| nonce | string | undefined | no | |
| onAbort | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onAbortCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onAnimationEnd | AnimationEventHandler<HTMLSpanElement> | undefined | no | |
| onAnimationEndCapture | AnimationEventHandler<HTMLSpanElement> | undefined | no | |
| onAnimationIteration | AnimationEventHandler<HTMLSpanElement> | undefined | no | |
| onAnimationIterationCapture | AnimationEventHandler<HTMLSpanElement> | undefined | no | |
| onAnimationStart | AnimationEventHandler<HTMLSpanElement> | undefined | no | |
| onAnimationStartCapture | AnimationEventHandler<HTMLSpanElement> | undefined | no | |
| onAuxClick | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onAuxClickCapture | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onBeforeInput | InputEventHandler<HTMLSpanElement> | undefined | no | |
| onBeforeInputCapture | InputEventHandler<HTMLSpanElement> | undefined | no | |
| onBeforeToggle | ToggleEventHandler<HTMLSpanElement> | undefined | no | |
| onBlur | FocusEventHandler<HTMLSpanElement> | undefined | no | |
| onBlurCapture | FocusEventHandler<HTMLSpanElement> | undefined | no | |
| onCanPlay | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onCanPlayCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onCanPlayThrough | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onCanPlayThroughCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onChange | ChangeEventHandler<HTMLSpanElement, Element> | undefined | no | |
| onChangeCapture | ChangeEventHandler<HTMLSpanElement, Element> | undefined | no | |
| onClick | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onClickCapture | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onCompositionEnd | CompositionEventHandler<HTMLSpanElement> | undefined | no | |
| onCompositionEndCapture | CompositionEventHandler<HTMLSpanElement> | undefined | no | |
| onCompositionStart | CompositionEventHandler<HTMLSpanElement> | undefined | no | |
| onCompositionStartCapture | CompositionEventHandler<HTMLSpanElement> | undefined | no | |
| onCompositionUpdate | CompositionEventHandler<HTMLSpanElement> | undefined | no | |
| onCompositionUpdateCapture | CompositionEventHandler<HTMLSpanElement> | undefined | no | |
| onContextMenu | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onContextMenuCapture | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onCopy | ClipboardEventHandler<HTMLSpanElement> | undefined | no | |
| onCopyCapture | ClipboardEventHandler<HTMLSpanElement> | undefined | no | |
| onCut | ClipboardEventHandler<HTMLSpanElement> | undefined | no | |
| onCutCapture | ClipboardEventHandler<HTMLSpanElement> | undefined | no | |
| onDoubleClick | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onDoubleClickCapture | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onDrag | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragCapture | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragEnd | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragEndCapture | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragEnter | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragEnterCapture | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragExit | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragExitCapture | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragLeave | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragLeaveCapture | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragOver | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragOverCapture | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragStart | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDragStartCapture | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDrop | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDropCapture | DragEventHandler<HTMLSpanElement> | undefined | no | |
| onDurationChange | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onDurationChangeCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onEmptied | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onEmptiedCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onEncrypted | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onEncryptedCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onEnded | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onEndedCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onError | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onErrorCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onFocus | FocusEventHandler<HTMLSpanElement> | undefined | no | |
| onFocusCapture | FocusEventHandler<HTMLSpanElement> | undefined | no | |
| onGotPointerCapture | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onGotPointerCaptureCapture | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onInput | InputEventHandler<HTMLSpanElement> | undefined | no | |
| onInputCapture | InputEventHandler<HTMLSpanElement> | undefined | no | |
| onInvalid | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onInvalidCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onKeyDown | KeyboardEventHandler<HTMLSpanElement> | undefined | no | |
| onKeyDownCapture | KeyboardEventHandler<HTMLSpanElement> | undefined | no | |
| onKeyPress | KeyboardEventHandler<HTMLSpanElement> | undefined | no | |
| onKeyPressCapture | KeyboardEventHandler<HTMLSpanElement> | undefined | no | |
| onKeyUp | KeyboardEventHandler<HTMLSpanElement> | undefined | no | |
| onKeyUpCapture | KeyboardEventHandler<HTMLSpanElement> | undefined | no | |
| onLoad | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onLoadCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onLoadedData | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onLoadedDataCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onLoadedMetadata | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onLoadedMetadataCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onLoadStart | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onLoadStartCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onLostPointerCapture | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onLostPointerCaptureCapture | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onMouseDown | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onMouseDownCapture | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onMouseEnter | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onMouseLeave | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onMouseMove | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onMouseMoveCapture | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onMouseOut | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onMouseOutCapture | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onMouseOver | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onMouseOverCapture | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onMouseUp | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onMouseUpCapture | MouseEventHandler<HTMLSpanElement> | undefined | no | |
| onPaste | ClipboardEventHandler<HTMLSpanElement> | undefined | no | |
| onPasteCapture | ClipboardEventHandler<HTMLSpanElement> | undefined | no | |
| onPause | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onPauseCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onPlay | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onPlayCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onPlaying | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onPlayingCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerCancel | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerCancelCapture | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerDown | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerDownCapture | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerEnter | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerLeave | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerMove | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerMoveCapture | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerOut | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerOutCapture | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerOver | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerOverCapture | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerUp | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onPointerUpCapture | PointerEventHandler<HTMLSpanElement> | undefined | no | |
| onProgress | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onProgressCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onRateChange | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onRateChangeCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onReset | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onResetCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onScroll | UIEventHandler<HTMLSpanElement> | undefined | no | |
| onScrollCapture | UIEventHandler<HTMLSpanElement> | undefined | no | |
| onScrollEnd | UIEventHandler<HTMLSpanElement> | undefined | no | |
| onScrollEndCapture | UIEventHandler<HTMLSpanElement> | undefined | no | |
| onSeeked | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onSeekedCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onSeeking | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onSeekingCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onSelect | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onSelectCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onStalled | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onStalledCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onSubmit | SubmitEventHandler<HTMLSpanElement> | undefined | no | |
| onSubmitCapture | SubmitEventHandler<HTMLSpanElement> | undefined | no | |
| onSuspend | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onSuspendCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onTimeUpdate | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onTimeUpdateCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onToggle | ToggleEventHandler<HTMLSpanElement> | undefined | no | |
| onTouchCancel | TouchEventHandler<HTMLSpanElement> | undefined | no | |
| onTouchCancelCapture | TouchEventHandler<HTMLSpanElement> | undefined | no | |
| onTouchEnd | TouchEventHandler<HTMLSpanElement> | undefined | no | |
| onTouchEndCapture | TouchEventHandler<HTMLSpanElement> | undefined | no | |
| onTouchMove | TouchEventHandler<HTMLSpanElement> | undefined | no | |
| onTouchMoveCapture | TouchEventHandler<HTMLSpanElement> | undefined | no | |
| onTouchStart | TouchEventHandler<HTMLSpanElement> | undefined | no | |
| onTouchStartCapture | TouchEventHandler<HTMLSpanElement> | undefined | no | |
| onTransitionCancel | TransitionEventHandler<HTMLSpanElement> | undefined | no | |
| onTransitionCancelCapture | TransitionEventHandler<HTMLSpanElement> | undefined | no | |
| onTransitionEnd | TransitionEventHandler<HTMLSpanElement> | undefined | no | |
| onTransitionEndCapture | TransitionEventHandler<HTMLSpanElement> | undefined | no | |
| onTransitionRun | TransitionEventHandler<HTMLSpanElement> | undefined | no | |
| onTransitionRunCapture | TransitionEventHandler<HTMLSpanElement> | undefined | no | |
| onTransitionStart | TransitionEventHandler<HTMLSpanElement> | undefined | no | |
| onTransitionStartCapture | TransitionEventHandler<HTMLSpanElement> | undefined | no | |
| onVolumeChange | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onVolumeChangeCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onWaiting | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onWaitingCapture | ReactEventHandler<HTMLSpanElement> | undefined | no | |
| onWheel | WheelEventHandler<HTMLSpanElement> | undefined | no | |
| onWheelCapture | WheelEventHandler<HTMLSpanElement> | undefined | no | |
| part | string | undefined | no | |
| popover | "" | "auto" | "hint" | "manual" | undefined | no | |
| popoverTarget | string | undefined | no | |
| popoverTargetAction | "hide" | "show" | "toggle" | undefined | no | |
| prefix | string | undefined | no | |
| property | string | undefined | no | |
| radioGroup | string | undefined | no | |
| rel | string | undefined | no | |
| resource | string | undefined | no | |
| results | number | undefined | no | |
| rev | string | undefined | no | |
| security | string | undefined | no | |
| size | "md" | "sm" | undefined | no | |
| slot | string | undefined | no | |
| spellCheck | Booleanish | undefined | no | |
| suppressContentEditableWarning | boolean | undefined | no | |
| suppressHydrationWarning | boolean | undefined | no | |
| tabIndex | number | undefined | no | |
| title | string | undefined | no | |
| translate | "no" | "yes" | undefined | no | |
| typeof | string | undefined | no | |
| unselectable | "off" | "on" | undefined | no | |
| vocab | string | undefined | no |
Proof
Contrast
measured on 0.2.0
| State | Foreground | Background | Ratio | Floor |
|---|---|---|---|---|
| default | rgb(30 107 69) | rgb(222 228 219) | 5.00 | AA 4.5 |
| default (dark) | rgb(111 211 162) | rgb(24 51 54) | 7.36 | AA 4.5 |
Size
19062 gzip bytes · measured on 0.2.0
Example
import { StateChip } from "@/components/ui/_kit/status/state-chip/StateChip";
import { type StateChipRole } from "@/components/ui/_kit/status/state-chip/StateChip";
const VERIFIED: StateChipRole = "verified";
const Example = () => <StateChip role={VERIFIED} label="Verified" />;
export default Example;not on native yet