MCPcopy Create free account
hub / github.com/adobe/react-spectrum / TagGroup

Function TagGroup

starters/docs/src/TagGroup.tsx:25–44  ·  view source on GitHub ↗
({
  label,
  description,
  errorMessage,
  items,
  children,
  renderEmptyState,
  ...props
}: TagGroupProps<T>)

Source from the content-addressed store, hash-verified

23}
24
25export 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
46export function Tag({
47 children,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected