({
label,
description,
errorMessage,
items,
children,
renderEmptyState,
...props
}: TagGroupProps<T>)
| 23 | } |
| 24 | |
| 25 | export function TagGroup<T>({ |
| 26 | label, |
| 27 | description, |
| 28 | errorMessage, |
| 29 | items, |
| 30 | children, |
| 31 | renderEmptyState, |
| 32 | ...props |
| 33 | }: TagGroupProps<T>) { |
| 34 | return ( |
| 35 | <AriaTagGroup {...props}> |
| 36 | {label && <Label>{label}</Label>} |
| 37 | <TagList items={items} renderEmptyState={renderEmptyState}> |
| 38 | {children} |
| 39 | </TagList> |
| 40 | {description && <Description>{description}</Description>} |
| 41 | {errorMessage && <Text slot="errorMessage">{errorMessage}</Text>} |
| 42 | </AriaTagGroup> |
| 43 | ); |
| 44 | } |
| 45 | |
| 46 | export function Tag({ |
| 47 | children, |
nothing calls this directly
no outgoing calls
no test coverage detected