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

Function ExampleCard

packages/dev/docs/src/ExampleCard.js:9–15  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

7import {useId} from 'react-aria';
8
9export function ExampleCard(props) {
10 let titleId = useId();
11 let descriptionId = useId();
12 return (
13 <a
14 href={props.url}
15 className={styles.exampleCard}
16 {...getAnchorProps(props.url)}
17 aria-labelledby={titleId}
18 aria-describedby={descriptionId}

Callers

nothing calls this directly

Calls 1

useIdFunction · 0.90

Tested by

no test coverage detected