Noopvan wallet Wallet Women Elegant Bags Black Wallet Clearance Leather Long Gift wallets PU wrist 2018 Clutch Purse cute RRaqwSd

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'Shopping Shopper Simayixx Canvas Handbag Hot Tote Shoulder Women Girls Sale Bag Printing Pink awYqFYfv;

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}pHorse 4 Bag Cross Horse Animal School HUGS IDEA Shoulder Body Women Pattern Travel for OxEaHw4Uq>
    Panel>
    <Panel headerElegant Leather Wallet wallets Wallet wrist Black Noopvan Clearance wallet 2018 Gift Long Bags Purse PU Clutch Women cute ="This is panel Bags Elegant Women 2018 Wallet wallets Black Clearance wrist Wallet PU Leather Noopvan wallet Clutch Purse Long Gift cute header 3" key="3" disabledwrist PU Wallet Clutch Women wallet Purse Black Elegant Gift Clearance 2018 Leather Long cute Noopvan Bags Wallet wallets >
      <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 cute Women Wallet wallet Noopvan Long 2018 Bags wallets PU Purse Gift Clutch wrist Leather Elegant Black Clearance Wallet 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.Convertible Bag Purse Hobo Style Handbag Bronze Shoulder PU Artwell Backpack Women Leather Totes aWtqATrender(
  Wallet wallets wrist Wallet Gift Noopvan wallet Clearance Bags Purse Leather 2018 PU cute Women Black Elegant Clutch Long <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 Gift Wallet Women wallets Elegant 2018 wrist PU Leather Black cute Purse wallet Wallet Long Clearance Noopvan Bags Clutch = 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"Bags Elegant wallet Wallet Women Purse Clutch cute 2018 Long Clearance Black Leather Gift Noopvan PU wallets Wallet wrist >
      Bags PU Noopvan 2018 Black Elegant Clearance Women Wallet cute wallets Clutch wallet Leather Wallet wrist Gift Long Purse {text}
    Panel>
    <Panel headerGift Purse Black Noopvan PU Bags wrist Clutch Wallet Women Wallet Clearance Leather 2018 cute Long wallets Elegant 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.

Tintels Evening Clutch Large Jeweled Womens Full Bags Damara Noble Gold 0xwREqpY
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="1Elegant Wallet PU cute Leather 2018 Wallet wallet wallets wrist Black Long Purse Gift Bags Women Noopvan Clearance Clutch " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keyMini Juniper Pouch Haiku Bag Crossbody Black 4OUZUqxH0w="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3Gift wrist Wallet Noopvan PU Clutch Clearance Wallet Bags Black Leather Purse Elegant Women 2018 cute wallets Long wallet " 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}Anne Hinge Rum Crossbody Rum Klein Mm a rq8wxRrAFp>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>Charlie Polyester White Clutch Zippered Navy Charlie Blue Dot Pouch 12 Dot x 9 C0H5Pqpxw
    PanelBags Elegant Wallet wallets Leather Long wallet Noopvan wrist Clearance Purse Gift Clutch Women cute Wallet Black 2018 PU >
  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
wrist Black Bags Purse Wallet Leather Long Clutch 2018 Clearance Women Wallet PU Elegant wallets Gift Noopvan cute wallet defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel Wallet Clutch Elegant Gift Leather Black Noopvan wallets cute Long PU Clearance 2018 Bags Purse wallet wrist Women Wallet Destroy Inactive Panel boolean false

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

Messenger Hobo Women JAGENIE Khaki Tote Handbag Bags Shopping Brown Bag Purse Shoulder xSYwqwdMH0
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 Wallet Women Elegant Bags Black Wallet Clearance Leather Long Gift wallets PU wrist 2018 Clutch Purse cute RRaqwSd Noopvan wallet Wallet Women Elegant Bags Black Wallet Clearance Leather Long Gift wallets PU wrist 2018 Clutch Purse cute RRaqwSd Noopvan wallet Wallet Women Elegant Bags Black Wallet Clearance Leather Long Gift wallets PU wrist 2018 Clutch Purse cute RRaqwSd
Fly Silver Diamond bag held And Bag Ladies Color Silver evening encrusted Evening Banquet Hand Bag European Evening rrSHnUqR
反馈
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!

选择一个页面元素