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

Function TokenField

starters/tailwind/src/TokenField.tsx:50–69  ·  view source on GitHub ↗
({
  label,
  description,
  className,
  inputRef,
  children,
  ...props
}: TokenFieldProps<T>)

Source from the content-addressed store, hash-verified

48}
49
50export function TokenField<T extends TokenFieldValue = TokenFieldValue>({
51 label,
52 description,
53 className,
54 inputRef,
55 children,
56 ...props
57}: TokenFieldProps<T>) {
58 return (
59 <AriaTokenField
60 {...props}
61 className={composeTailwindRenderProps(className, tokenFieldStyles())}>
62 {label && <Label>{label}</Label>}
63 <AriaTokenInput ref={inputRef} className={tokenInputStyles}>
64 {children}
65 </AriaTokenInput>
66 {description && <Description>{description}</Description>}
67 </AriaTokenField>
68 );
69}
70
71export function Token(props: TokenProps) {
72 return (

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected