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

Function DisclosurePanel

starters/tailwind/src/Disclosure.tsx:73–84  ·  view source on GitHub ↗
({children, ...props}: DisclosurePanelProps)

Source from the content-addressed store, hash-verified

71}
72
73export function DisclosurePanel({children, ...props}: DisclosurePanelProps) {
74 return (
75 <AriaDisclosurePanel
76 {...props}
77 className={composeTailwindRenderProps(
78 props.className,
79 'h-(--disclosure-panel-height) motion-safe:transition-[height] overflow-clip'
80 )}>
81 <div className="px-4 py-2">{children}</div>
82 </AriaDisclosurePanel>
83 );
84}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected