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

Function PropContextualHelp

packages/dev/s2-docs/src/VisualExampleClient.tsx:893–907  ·  view source on GitHub ↗
({control})

Source from the content-addressed store, hash-verified

891}
892
893function PropContextualHelp({control}) {
894 if (!control.description) {
895 return null;
896 }
897
898 return (
899 <ContextualHelp variant="info" size="XS">
900 <Heading>{control.name}</Heading>
901 <Content>{control.description}</Content>
902 <Footer>
903 <code className={style({font: 'code-xs'})}>{control.valueType}</code>
904 </Footer>
905 </ContextualHelp>
906 );
907}
908
909function NumberControl({control, value, onChange}: ControlProps) {
910 if (control.options?.control === 'slider') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected