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

Function Command

packages/dev/s2-docs/src/Command.tsx:46–61  ·  view source on GitHub ↗
({command, label}: CommandProps)

Source from the content-addressed store, hash-verified

44}
45
46export function Command({command, label}: CommandProps) {
47 return (
48 <div className={container} data-example-switcher>
49 <div className={codeWrap}>
50 {label && (
51 <div className={style({font: 'body-sm', marginBottom: 8, color: 'body'})}>{label}</div>
52 )}
53 <div className={codeContainer}>
54 <Prompt styles={iconStyle({size: 'L'})} />
55 <pre className={preStyle}>{command}</pre>
56 <CopyButton ariaLabel="Copy command" tooltip="Copy command" text={command} />
57 </div>
58 </div>
59 </div>
60 );
61}
62
63export default Command;

Callers

nothing calls this directly

Calls 1

iconStyleFunction · 0.90

Tested by

no test coverage detected