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

Function DisclosureHeader

starters/docs/src/Disclosure.tsx:18–27  ·  view source on GitHub ↗
({children, ...props}: HeadingProps)

Source from the content-addressed store, hash-verified

16}
17
18export function DisclosureHeader({children, ...props}: HeadingProps) {
19 return (
20 <Heading {...props}>
21 <Button slot="trigger" className="disclosure-button">
22 <ChevronRight size={16} />
23 <span>{children}</span>
24 </Button>
25 </Heading>
26 );
27}
28
29export function DisclosurePanel(props: DisclosurePanelProps) {
30 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected