1. Components
  2. Collapse

Components

Tailwind CSS Collapse

Toggle the visibility of content.

Requires JS

Note that this component requires the use of our Collapse plugin, else you can skip this message if you are already using Preline UI as a package.

Example

Click the buttons below to show and hide another element.

Show/Hide

Click the buttons below to show and hide another element.

Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.