Panel

A content panel that supports folding panels. The Panel can have all the ' Data Display ' components and can be used as a container for the form.

  • <Panel>
  • <PanelGroup>

Usage

import { Panel, PanelGroup } from 'rsuite';

Examples

Default

Panel title

With border

Panel title

With shadow

Panel title

No header

Card

RSUITE

A suite of React components, sensible UI design, and a friendly development experience.

Card group

Card title

Card title

Card title

Card title

Collapsible

Fill the container

User List
Id
First Name
Last Name
City
Street
Company Name
Email
1
Ernest Schuppe SchuppeSchuppeSchuppeSchuppeSchuppeSchuppe Schuppe
Schuppe
New Amieshire
Ratke Port
Lebsack - Nicolas
Leora13@yahoo.com
2
Janis
Vandervort
New Gust
Dickinson Keys
Glover - Hermiston
Mose_Gerhold51@yahoo.com
3
Makenzie
Bode
Lefflerstad
Legros Divide
Williamson - Kassulke
Frieda.Sauer61@gmail.com
4
Ciara
Towne
East Catalina
Schimmel Ramp
Hilpert, Eichmann and Brown
Eloisa.OHara@hotmail.com
5
Suzanne
Wolff
Ritchieborough
Lemuel Radial
Mayer - Considine
Brisa46@hotmail.com
6
Alessandra
Feeney
Lake Emery
Mosciski Estate
Nikolaus and Sons
Cody.Schultz56@gmail.com
7
Margret
Heller
East Dejuan
Gunner Drive
Corwin, Maggio and Wintheiser
Enrico_Beer@yahoo.com
8
Emiliano
Moore
Schummtown
Maria Junctions
Gulgowski - Botsford
Mitchel.Herman@yahoo.com
9
Alessandra
Smith
Gilberthaven
Kali Spurs
Maggio LLC
Gaylord_Reichel16@yahoo.com
10
Eldridge
Bins
Felicitychester
Casper Squares
Leffler, Cummerata and Price
Eileen48@gmail.com
11
Claude
Hermiston
Caleighhaven
Bode Pine
Heller, Rosenbaum and Lockman
Rico_Nolan@hotmail.com
12
Clarabelle
Ankunding
Herzogmouth
Nolan Summit
Mante, Oberbrunner and Collins
Dawn_Metz@yahoo.com
13
Hubert
Boehm
Eulaliabury
Anastacio Springs
Greenholt, Homenick and Considine
Ron.Franecki@gmail.com
14
Vladimir
Breitenberg
East Alice
Lula Port
Kshlerin - Pfeffer
Hayley52@yahoo.com
15
Haylee
Purdy
East Frankie
Dena Walk
Lemke, Mitchell and Harber
Duane.Rempel@hotmail.com
16
Herminia
Altenwerth
New Kendall
Kshlerin Cape
Gislason - Nicolas
Eddie_Bartell@hotmail.com
17
Erick
Klein
Port Whitney
Megane Cliffs
Olson and Sons
Josephine_Legros@yahoo.com
18
Lisandro
Barton
West Meda
Torrance Union
Volkman and Sons
Jared.Hudson@hotmail.com
19
Ashton
Daugherty
Darrenport
Hermann Port
Grady LLC
Delpha.Tromp9@yahoo.com
20
Cassandra
Schmitt
Janiyahaven
Windler Lodge
Ankunding Group
Ariel.Maggio9@yahoo.com
Loading...

Panel group

Panel 1

Panel 2

Panel 3

Collapsible panel group

Panel 1

Accordion effect

Only one panel can be expanded.

Panel 1

Props

<Panel>

Property Type (Default) Description
bodyFill boolean Content area filled with containers
bordered boolean Show border
shaded boolean With shadow
classPrefix string ('panel') The prefix of the component CSS class
collapsible boolean Whether it is a collapsible panel
defaultExpanded boolean Expand by default
eventKey any The event key corresponding to the panel.
expanded boolean Expand the Panel.
header ReactNode The head displays information.
id string or number ID

<PanelGroup>

Property Type (Default) Description
accordion boolean Whether it is a collapsible panel.
activeKey any Expand the Panel, corresponding to the 'Panel' of 'eventkey'
classPrefix string The prefix of the component CSS class
defaultActiveKey any The default expansion panel.
onSelect (eventKey: any, event: SyntheticEvent) => void Toggles the callback function for the expand panel