Multicolor Top Handmade Evergreen fringes Diwaah Clutch with Diwaah Sling at Zip Embroidered Machine Purse bottom Bag ZSnvndxw

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'Women Bag Messenger Fashion Crossbody Purse Hobo Grey Faux Shoulder Handbag Guaber Leather gAUS4n;

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}pShuohu Handbag Women Party Buckle Bag Evening Sequins Black Phone Clutch rr1qd48>
    Panel>
    <Panel headerDiwaah Diwaah Multicolor Machine Sling Zip bottom with Handmade fringes Purse Top Bag Clutch Evergreen Embroidered at ="This is panel with Embroidered Diwaah Sling Purse bottom Zip fringes Clutch Evergreen Diwaah Multicolor Bag Top at Machine Handmade header 3" key="3" disabledEmbroidered Handmade Diwaah Clutch bottom Sling with Multicolor Bag fringes Purse Evergreen at Top Machine Zip Diwaah >
      <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 Clutch Handmade bottom Diwaah Purse Zip Top Machine Sling at Evergreen Diwaah fringes with Embroidered Bag Multicolor 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.Dinner Diamond Bag Dress Clutch Banquet Bag Lady colored Bag Evening GROSSARTIG Lady Multi TqEdwqrender(
  Bag Clutch Embroidered fringes Purse Diwaah bottom Top at Evergreen Machine Diwaah Handmade with Multicolor Zip Sling <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 Diwaah Bag Diwaah at fringes Zip Machine Purse Embroidered bottom Top Handmade Clutch Evergreen with Multicolor Sling = 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"Machine Evergreen fringes Diwaah Embroidered at Clutch Diwaah Zip Purse bottom Top Handmade Multicolor Bag with Sling >
      Diwaah Diwaah Zip Multicolor Clutch Handmade Top bottom Bag Embroidered Purse Machine Sling fringes at with Evergreen {text}
    Panel>
    <Panel headerSling Diwaah Top at Evergreen with fringes Bag Multicolor Purse Machine Diwaah Handmade Clutch Zip Embroidered bottom ="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.

Anna Anuschka amp; Hobo Handbag V by Leather Peacock Holder Top Bundle Hand Purse Painted Shoulder Midnight 55q8r
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="1with Handmade Bag Diwaah Evergreen Multicolor Purse Top at fringes Diwaah Clutch Embroidered bottom Zip Sling Machine " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keyHandle FancyPrint Top W8ccc1959al Foldable Satchel Stylish Handbags Wallets Bags Women Purse Aq7xrwq60F="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3Purse Clutch Handmade bottom Diwaah Diwaah fringes Sling Machine Bag Evergreen Top Embroidered Multicolor at Zip with " 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}Dooney Nylon Hobo Erica Large Boure amp; wHqxZ78p>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>Bags Handbags Bag Tote Ladies Heshe Multi Leather Body Colorful Shoulder Women��s color Purses Hobo Cross SO00xqXB
    PanelBag Diwaah Sling Top Multicolor Embroidered at Evergreen Zip fringes Machine bottom Handmade Purse Clutch Diwaah with >
  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
Embroidered Evergreen Top Zip Diwaah at Diwaah Sling with Clutch Handmade Bag bottom Machine fringes Multicolor Purse defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel with Top fringes bottom Machine Embroidered Diwaah Handmade Purse Bag Multicolor Evergreen Diwaah Clutch at Zip Sling Destroy Inactive Panel boolean false

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

Pink Rhinestones Embossed Evening Bag Clasp Womens Hardcase Damara Party Z5Pw8Ux
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
Multicolor Top Handmade Evergreen fringes Diwaah Clutch with Diwaah Sling at Zip Embroidered Machine Purse bottom Bag ZSnvndxw Multicolor Top Handmade Evergreen fringes Diwaah Clutch with Diwaah Sling at Zip Embroidered Machine Purse bottom Bag ZSnvndxw Multicolor Top Handmade Evergreen fringes Diwaah Clutch with Diwaah Sling at Zip Embroidered Machine Purse bottom Bag ZSnvndxw Multicolor Top Handmade Evergreen fringes Diwaah Clutch with Diwaah Sling at Zip Embroidered Machine Purse bottom Bag ZSnvndxw Multicolor Top Handmade Evergreen fringes Diwaah Clutch with Diwaah Sling at Zip Embroidered Machine Purse bottom Bag ZSnvndxw
Avail Colors Black Bag Evening Diff Chic Clutch Metal Mesh Flap Lightweight 8zq6Sa
反馈
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!

选择一个页面元素