Disclosure
A simple, accessible foundation for building custom UIs that show and hide content, like togglable accordion panels.
Made by imskyleen
@peduarte starred 3 repositories
@headlessui/react
Installation
Usage
Props
Animate UI props
DisclosurePanel
Prop | Type | Default |
---|---|---|
transition? | Transition | { type: 'spring', stiffness: 150, damping: 22 } |
Don't delete from the DOM
The choice made is the same as Headless UI, i.e. to remove the element from the DOM for accessibility and performance reasons. However, this may pose a problem for SEO. If you want your Disclosure content to be taken into account by Google, please replace the DisclosurePanel component with:
Credits
- We use Headless UI for the disclosure component.