import React from "react"; import { PlusTag as PlusTagElement } from "../dist/components/tag/index.js"; export type { PlusTagElement }; export interface PlusTagProps extends Pick< React.AllHTMLAttributes, | "children" | "dir" | "hidden" | "id" | "lang" | "slot" | "style" | "title" | "translate" | "onClick" | "onFocus" | "onBlur" > { /** Toggles between light/dark color themes */ invert?: boolean; /** Accessible label for the tag (falls back to text content) */ undefined?: PlusTagElement["undefined"]; /** ARIA role (defaults to "status") */ undefined?: PlusTagElement["undefined"]; /** Defines the tag's visual state and color scheme */ status?: PlusTagElement["status"]; /** Controls the tag's size variant */ size?: PlusTagElement["size"]; /** Sets the border radius style */ radius?: PlusTagElement["radius"]; /** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */ className?: string; /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */ exportparts?: string; /** Used for labels to link them with their inputs (using input id). */ htmlFor?: string; /** Used to help React identify which items have changed, are added, or are removed within a list. */ key?: number | string; /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */ part?: string; /** A mutable ref object whose `.current` property is initialized to the passed argument (`initialValue`). The returned object will persist for the full lifetime of the component. */ ref?: any; /** Allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the `Tab` key, hence the name) and determine their relative ordering for sequential focus navigation. */ tabIndex?: number; } /** * A versatile tag component for displaying status, labels, and categories * --- * * * ### **CSS Properties:** * - **--tag-bg-color** - Background color for default state (inherits from --plus-color-background-neutral-default) _(default: undefined)_ * - **--tag-text-color** - Text color for default state (inherits from --plus-color-text-default) _(default: undefined)_ * * ### **CSS Parts:** * - **tag** - The container element for the tag */ export const PlusTag: React.ForwardRefExoticComponent;