IFFDAYIFFDAYDesign
Controls

Disclosure

A heading that shows or hides its content; hidden content stays in the page.

import { Disclosure } from '@iffday/ui';

Example

The heading starts with a › that turns 90 degrees when open. Closed content is only hidden: it stays in the page’s HTML, where search engines read it. Code under every example on this site is a Disclosure.

Props

PropTypeDefault
children*ReactNode
summary*ReactNode
classNamestring''
defaultOpenbooleanfalse