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

Function TagField

starters/docs/stories/TokenField.stories.tsx:124–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122};
123
124export const TagField: Story = args => (
125 <TokenField
126 {...args}
127 allowsNewlines
128 defaultValue={
129 new TagFieldValue([
130 {type: 'token', text: 'Architecture'},
131 {type: 'token', text: 'Design'},
132 {type: 'token', text: 'Development'},
133 {type: 'token', text: 'Marketing'},
134 {type: 'token', text: 'Sales'}
135 ])
136 }>
137 {segment => <Token>{segment.text}</Token>}
138 </TokenField>
139);
140
141TagField.args = {
142 label: 'Categories',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected