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

Function StringControl

packages/dev/s2-docs/src/VisualExampleClient.tsx:1098–1109  ·  view source on GitHub ↗
({control, value, onChange}: ControlProps)

Source from the content-addressed store, hash-verified

1096}
1097
1098function StringControl({control, value, onChange}: ControlProps) {
1099 return (
1100 <TextField
1101 label={control.name}
1102 placeholder="–"
1103 contextualHelp={<PropContextualHelp control={control} />}
1104 value={value || ''}
1105 onChange={onChange}
1106 styles={style({width: controlWidth})}
1107 />
1108 );
1109}
1110
1111function ChildrenControl({control, value, onChange}: ControlProps) {
1112 if (control.slots) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected