MCPcopy Index your code
hub / github.com/adobe/react-spectrum / Color

Function Color

packages/dev/s2-docs/src/S2Colors.tsx:299–314  ·  view source on GitHub ↗
({name, className})

Source from the content-addressed store, hash-verified

297}
298
299export function Color({name, className}) {
300 return (
301 <div
302 className={style({
303 display: 'flex',
304 gap: 8,
305 marginBottom: 4,
306 font: 'ui',
307 alignItems: 'center',
308 breakInside: 'avoid'
309 })}>
310 <div className={typeof className === 'function' ? className({}) : className} />
311 <div className="sb-unstyled">{name}</div>
312 </div>
313 );
314}
315
316export function IconColors() {
317 return (

Callers

nothing calls this directly

Calls 1

classNameFunction · 0.50

Tested by

no test coverage detected