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

Function Example

starters/tailwind/stories/TokenField.stories.tsx:86–98  ·  view source on GitHub ↗
(args: any)

Source from the content-addressed store, hash-verified

84}
85
86export const Example = (args: any) => (
87 <TokenField
88 {...args}
89 defaultValue={
90 new TokenFieldValue([
91 {type: 'text', text: 'Hello '},
92 {type: 'token', text: '@username'},
93 {type: 'text', text: '!'}
94 ])
95 }>
96 {segment => <Token>{segment.text}</Token>}
97 </TokenField>
98);
99
100Example.args = {
101 label: 'Message',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected