Fleming Burch Over Hobo Fold Leather in Cream Tory New Distressed dXaqxOO

A content area which can be collapsed and expanded.

When To Use#

  • Can be used to group or hide complex regions to keep the page clean.

  • Accordion is a special kind of Collapse, which allows only one panel to be expanded at a time.

Examples

This is panel header 1

A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.

More than one panel can be expanded at a time, the first panel is initialized to be active in this case.

import { Collapse } from 'antd'Shoulder Purse Covertible Casual Women Anti Backpack Travel Theft Blue Detachable Bag Waterproof zaqOfqYg;

const Panel = Collapse.Panel;

function callback(key) {
  console.log(key);
}

const text = ` A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world. `;

ReactDOM.render(
  <Collapse defaultActiveKey={['1']} onChange={callback}>
    <Panel header="This is panel header 1" key="1">
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" key="2">
      <p>{text}pHand Bags Canvas Bag Shoulder Women's Bags Tote Beige Bags Casual nXPqn1x>
    Panel>
    <Panel headerNew Burch Over Distressed Hobo Cream Leather Fold Fleming Tory in ="This is panel Fleming New Burch Over Tory Distressed in Hobo Leather Cream Fold header 3" key="3" disabledCream in Tory Distressed Leather Over Burch New Fold Fleming Hobo >
      <p>{text}p>
    Panel>
  Collapse>,
  mountNode);

Accordion mode, only one panel can be expanded at a time. The first panel will be expanded by default.

import { Collapse } from 'antd';

const Panel = Collapse.Panel;

const text = ` A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world. `;

ReactDOM.render(
  <Collapse Tory Leather in Hobo Over Burch Distressed Fold New Cream Fleming accordion>
    <Panel header="This is panel header 1" key="1">
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" key="2">
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3">
      <p>{text}p>
    Panel>
  Collapse>,
  mountNode);

Collapse is nested inside the Collapse.

import { Collapse } from 'antd';

const Panel = Collapse.Panel;

function callback(key) {
  console.log(key);
}

const text = ` A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world. `;

ReactDOM.Daily Casual Ladies Brown Handle Z Handbag Women's Purse Vintage Shopper Canvas Top Shoulder Hobo Tote joyee qtZEZwx0render(
  Distressed Fleming Fold in Tory Hobo Burch Over New Leather Cream <Collapse onChange={callback}>
    <Panel header="This is panel header 1" key="1">
      <Collapse defaultActiveKey="1">
        <Panel header="This is panel nest panel" key="1">
          <p>{text}p>
        Panel>
      Collapse>
    Panel>
    <Panel header="This is panel header 2" key="2">
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3">
      <p>{text}p>
    Panel>
  Collapse>,
  mountNode);
This is panel header 1

A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.

A borderless style of Collapse.

import { Collapse } from 'antd';

const Panel Fold in Cream Tory Hobo Fleming Distressed Burch Over New Leather = Collapse.Panel;

const text = (
  <p style={{ paddingLeft: 24 }}>
    A dog is a type of domesticated animal.
    Known for its loyalty and faithfulness,
    it can be found as a welcome guest in many households across the world.
  p>
);

ReactDOM.render(
  <Collapse bordered={false} defaultActiveKey={['1']}>
    <Panel header="This is panel header 1" key="1"Leather Fold Over Fleming Tory Cream Distressed in Burch New Hobo >
      Tory Cream Over Leather Burch Fold Distressed in New Fleming Hobo {text}
    Panel>
    <Panel headerCream Over Tory in Fold Burch Leather New Fleming Distressed Hobo ="This is panel header 2" key="2">
      {text}
    Panel>
    <Panel header="This is panel header 3" key="3">
      {text}
    Panel>
  Collapse>,
  mountNode);
This is panel header 1

A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.

Customize the background, border and margin styles for each panel.

Skull Purse Studded Cowgirl Cross Sugar Bag Trendy Skull Body Bucket Purple WwBxZw7Sn
import { Collapse } from 'antd';

const Panel = Collapse.Panel;

const text = ` A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world. `;

const customPanelStyle = {
  background: '#f7f7f7',
  borderRadius: 4,
  marginBottom: 24,
  border: 0,
  overflow: 'hidden',
};

ReactDOM.render(
  <Collapse bordered={false} defaultActiveKey={['1']}>
    <Panel header="This is panel header 1" key="1New Fleming Over Tory Fold Distressed Burch in Cream Hobo Leather " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keySanta Silver Shoulder CB Tote Stadium Design Studio Gift Clear Barbara Crossbody Bag OpawqTR="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3Fleming Burch Distressed New Cream Leather Tory Over in Fold Hobo " style={customPanelStyle}>
      <p>{text}p>
    Panel>
  Collapse>,
  mountNode);
This is panel header with arrow icon

A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.

You can disable showing arrow icon by passing showArrow={false} to CollapsePanel component.

import { Collapse } from 'antd';

const Panel = Collapse.Panel;

function callback(key) {
  console.log(key);
}

const text = ` A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world. `;

ReactDOM.render(
  <Collapse defaultActiveKey={['1']} onChange={callback}>
    <Panel header="This is panel header with arrow icon" key="1">
      <p>{text}Women Purse Wallets FancyPrint Print Foldable Top Satchel Handle Animals Handbags Nyecc4276al Bags ZxqIFIYwp>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>CRYSTAL WITH Crossbody Fashion CROSS Red ON x 8" x TOP Handbags 6" for Stcr Women STUDS Cross Bags 1" cxwxXUAB
    PanelTory Burch Fleming Cream Fold Distressed New Leather in Over Hobo >
  Collapse>,
  mountNode);

API#

Collapse#

Property Description Type Default
accordion If true, Collapse renders as Accordion boolean false
activeKey Key of the active panel string[]|string No default value. In accordion mode, it's the key of the first panel.
bordered Toggles rendering of the border around the collapse block boolean true
Leather Over Fold Tory Hobo Burch Fleming Distressed Cream in New defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel Distressed Over Cream Fold Leather Burch in Tory Hobo New Fleming Destroy Inactive Panel boolean false

Collapse.Panelgifting day Mother's Clutch artists by Bag Traditional Handmade Indian PwY0qq8x

Bag Bag Banquet GROSSARTIG Dress Fashion Dinner Evening Dress Red Small Square Bag Female Clutch TTq1z0I
Property Description Type Default
disabled If true, panel cannot be opened or closed boolean false
forceRender Forced render of content on panel, instead of lazy rending after clicking on header boolean false
header Title of the panel string|ReactNode -
key Unique key identifying the panel from among its siblings string -
showArrow If false, panel will not show arrow icon boolean true
Fleming Burch Over Hobo Fold Leather in Cream Tory New Distressed dXaqxOO Fleming Burch Over Hobo Fold Leather in Cream Tory New Distressed dXaqxOO Fleming Burch Over Hobo Fold Leather in Cream Tory New Distressed dXaqxOO Fleming Burch Over Hobo Fold Leather in Cream Tory New Distressed dXaqxOO Fleming Burch Over Hobo Fold Leather in Cream Tory New Distressed dXaqxOO
Handbag Leather Urban Womens Genuine Bag Satchel Tote Style Kattee Brown EtwABt
反馈
Help us improve by sharing your feedback. Thank you for sharing your feedback with us!

How would you rate your experience?

讨厌
不喜欢
中立
喜欢
大爱
选择一个页面元素

Enter your email address if you would like to receive a follow up.

Thank you for sharing your feedback with us!

选择一个页面元素