API reference: @salmonui/buttons/tag-group
TagPropsinterface
import type { TagProps } from '@salmonui/buttons/tag-group';interface TagProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role' | 'children'> {
value: string;
children?: ReactNode;
textValue?: string | undefined;
iconStart?: ReactNode;
iconEnd?: ReactNode;
tone?: TagTone | undefined;
disabled?: boolean | undefined;
removable?: boolean | undefined;
ref?: Ref<HTMLDivElement> | undefined;
}
| Name | Signature | Description |
|---|---|---|
value | value: string; | Stable identity, reported in every event and submitted with |
childrenoptional | children?: ReactNode; | |
textValueoptional | textValue?: string | undefined; | Plain-text label when |
iconStartoptional | iconStart?: ReactNode; | |
iconEndoptional | iconEnd?: ReactNode; | |
toneoptional | tone?: TagTone | undefined; | |
disabledoptional | disabled?: boolean | undefined; | |
removableoptional | removable?: boolean | undefined; |
|
refoptional | ref?: Ref<HTMLDivElement> | undefined; |