import React from "react"; import { PlusChip as PlusChipElement } from "../dist/components/chip/index.js"; export type { PlusChipElement }; export interface PlusChipProps extends Pick< React.AllHTMLAttributes, | "children" | "dir" | "hidden" | "id" | "lang" | "slot" | "style" | "title" | "translate" | "onClick" | "onFocus" | "onBlur" > { /** Toggles inverted color scheme */ invert?: boolean; /** Shows/hides the dismiss button */ dismiss?: boolean; /** Disables the chip interaction */ disabled?: boolean; /** Determines the visual style of the chip - filled: Solid background color - outlined: Transparent background with border */ kind?: PlusChipElement["kind"]; /** Sets the size of the chip - sm: Small size - md: Medium size - lg: Large size */ size?: PlusChipElement["size"]; /** Defines the type of chip - default: Standard chip - avatar: Chip with avatar support */ type?: PlusChipElement["type"]; /** Sets the status/color variant of the chip - default: Neutral color scheme - success: Green color scheme - warning: Yellow color scheme - danger: Red color scheme - info: Blue color scheme */ status?: PlusChipElement["status"]; /** Controls the border radius style - full: Fully rounded corners - rounded: Slightly rounded corners */ shape?: PlusChipElement["shape"]; /** 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; } /** * * --- * * * ### **Slots:** * - _default_ - The default slot for chip content * * ### **CSS Properties:** * - **--text-color** - Controls the text color of the chip _(default: undefined)_ * - **--border-color** - Controls the border color of the chip _(default: undefined)_ * - **--bg-default** - Controls the default background color _(default: undefined)_ * - **--bg-hovered** - Controls the background color when hovered _(default: undefined)_ * - **--bg-pressed** - Controls the background color when pressed _(default: undefined)_ * - **--bg-focused** - Controls the background color when focused _(default: undefined)_ * * ### **CSS Parts:** * - **base** - The component's base wrapper * - **icon** - The dismiss icon wrapper */ export const PlusChip: React.ForwardRefExoticComponent;