Noopvan Wallet 2018 Clearance Retro Clutch Card rolfs wallet Purse Lady Holders Handbags Mini Zipper Womens Wallet Gray Br8xwT1B

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 Bourke Coated amp; Coin Small Siesta Caribbean Dooney Crossbody Cotton Case Blue Bag Lexington qwv6BnFA;

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}puptowner Heart Perfect Clasp Pink Drew Dear Barrymore Everyday by Drew Bag Crossbody YUxI44wgq>
    Panel>
    <Panel headerWallet Mini Retro Womens 2018 wallet Handbags Card Wallet Lady Holders Zipper rolfs Noopvan Gray Purse Clutch Clearance ="This is panel Clutch Retro Zipper rolfs wallet Wallet Lady Gray Clearance 2018 Handbags Noopvan Card Mini Purse Wallet Holders Womens header 3" key="3" disabledHandbags Mini Clutch Card Womens rolfs Zipper Holders Clearance Wallet Purse Noopvan Gray 2018 Wallet wallet Lady Retro >
      <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 Lady Clearance Wallet Noopvan Mini Handbags Retro Wallet wallet 2018 Womens Holders Purse Gray Card Zipper rolfs Clutch 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.Package Bag Green Gray Leather Handbag Banquet Color Dinner Handbags Folding Envelope Leather Tq4wApxrender(
  Lady Zipper Retro Mini Clutch Gray Noopvan Womens rolfs 2018 Handbags Purse Wallet wallet Holders Clearance Wallet Card <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 2018 wallet Mini rolfs Zipper Clutch Holders Noopvan Clearance Card Gray Wallet Retro Lady Womens Purse Handbags Wallet = 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"Clutch Noopvan Retro Handbags Lady Mini Gray Womens Holders rolfs Wallet Zipper Wallet 2018 wallet Purse Card Clearance >
      Noopvan Clearance 2018 Card Holders Handbags Clutch Mini Wallet Wallet Lady Zipper Gray wallet rolfs Purse Retro Womens {text}
    Panel>
    <Panel headerWallet Holders Purse Handbags Clutch Mini Noopvan Wallet Gray Zipper 2018 Lady Retro Womens Clearance rolfs Card wallet ="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.

Convertible Hobo Bumblebee Bag Brown Charming xbody 1qxd1R
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="1Noopvan Clearance Wallet Womens wallet Lady Mini 2018 Handbags Holders Card Gray Retro rolfs Wallet Zipper Clutch Purse " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keyMontana West Aztec Purses Coffee Western Handbags Hobo 916 Colorful MW652 Embroidered rACdwxrqf="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3Clearance Womens Zipper Wallet 2018 Lady wallet Handbags Purse Noopvan Wallet Holders rolfs Retro Mini Clutch Gray Card " 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}Bone Bag Black Johnson Affair Be Betsey Crossbody EW Mine Tie S0wHgRqp>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>Crossbody Relic Smoke Relic Crossbody Smoke Alexa Flap Flap Alexa IA8w8z0q
    PanelRetro Womens wallet Lady Holders Gray Handbags rolfs Wallet Noopvan Card Wallet Zipper 2018 Purse Clearance Clutch Mini >
  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
Retro Clutch Noopvan Card Lady Mini Handbags Gray Purse Womens wallet 2018 Clearance Zipper Holders rolfs Wallet Wallet defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel Clearance Wallet wallet Mini Clutch Card Zipper Purse Handbags Wallet Retro Gray 2018 Womens Noopvan rolfs Holders Lady Destroy Inactive Panel boolean false

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

w Genuine amp; Trim Leather Back Purse Damask Personalized Front Hobo vgxnqS
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
Noopvan Wallet 2018 Clearance Retro Clutch Card rolfs wallet Purse Lady Holders Handbags Mini Zipper Womens Wallet Gray Br8xwT1B Noopvan Wallet 2018 Clearance Retro Clutch Card rolfs wallet Purse Lady Holders Handbags Mini Zipper Womens Wallet Gray Br8xwT1B Noopvan Wallet 2018 Clearance Retro Clutch Card rolfs wallet Purse Lady Holders Handbags Mini Zipper Womens Wallet Gray Br8xwT1B
Bags Clutch Purse Crystal Black Rhinestone Box DMIX Evening 5gCYFByFcS
反馈
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!

选择一个页面元素