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

Function Example

starters/docs/stories/TokenField.stories.tsx:87–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected