Panel
Toggle content visibility using Panel.
install | yarn add @clayui/panel |
---|---|
version | 3.119.0 |
The Panel is a replacement for the old ClayCollapse in version 2.x, has the same effect but written in React using composition, try it. We recommend that you review the use cases in the Storybook.
Basic Usage
Copied!
Code Sample (expand to see it)
Usage with a custom Title
ClayPanel.Title
allows you to add custom content to the title of the panel as seen in this example using ClayLabels
.
Copied!
Code Sample (expand to see it)