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

Function Section

examples/rsp-next-ts/components/Section.tsx:9–20  ·  view source on GitHub ↗
(props: SectionProps)

Source from the content-addressed store, hash-verified

7}
8
9export default function Section(props: SectionProps) {
10 let {title, children} = props;
11 return (
12 <View marginBottom="size-200">
13 <Heading id={title.toLowerCase()} level={2}>
14 {title}
15 </Heading>
16 <Divider marginBottom="size-100" />
17 {children}
18 </View>
19 );
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected