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

Function SemanticColorsDisclosure

packages/dev/s2-docs/src/S2Colors.tsx:106–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104}
105
106export function SemanticColorsDisclosure() {
107 return (
108 <Disclosure isQuiet>
109 <DisclosureTitle>Semantic colors</DisclosureTitle>
110 <DisclosurePanel>
111 <p>
112 The following values are available across all color properties. Prefer to use semantic
113 colors over global colors when they represent a specific meaning.
114 </p>
115 <div className="sb-unstyled" style={{columnWidth: 120}}>
116 <ColorScale scale={getColorScale('accent-color')} />
117 <ColorScale scale={getColorScale('informative-color')} />
118 <ColorScale scale={getColorScale('negative-color')} />
119 <ColorScale scale={getColorScale('notice-color')} />
120 <ColorScale scale={getColorScale('positive-color')} />
121 </div>
122 </DisclosurePanel>
123 </Disclosure>
124 );
125}
126
127export function GlobalColorsDisclosure() {
128 return (

Callers

nothing calls this directly

Calls 1

getColorScaleFunction · 0.90

Tested by

no test coverage detected