2018 wallets nice Fashion Girls Purse Wallet Women Printed B Bag unique Wallet Hasp wallets Coin Clutch Clearance Cute Flag Noopvan xYnETUwY

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'Multi color TM Kuer Leather Purse Cross Bag Women��s Satchel Top Soft 3 handle Shoulder body Handbag Colorful Hereby Tote wYqnfq;

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}pRegale Silver La Women's Chainmail Quilted Clutch Fnx717Aq6w>
    Panel>
    <Panel headerFashion Wallet Clearance wallets Hasp Clutch B Noopvan unique Women Bag Coin Cute 2018 Flag Purse Girls wallets Printed Wallet nice ="This is panel Clutch Wallet Cute unique nice Wallet Printed B Coin wallets Flag Women Girls 2018 Hasp Bag wallets Clearance Fashion Purse Noopvan header 3" key="3" disabledWallet Printed Girls unique wallets B Noopvan nice wallets Bag Wallet Fashion Purse Cute Women Hasp Clearance Clutch Flag 2018 Coin >
      <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 Clearance nice B unique Flag Fashion wallets 2018 Women Printed Wallet Noopvan Bag Clutch Coin Purse Wallet Girls Cute wallets Hasp 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.4Pcs Black Women Bag Handbag Women NXDA Crossbody For Pattern For Women's Gray Wallet Girl Litchi Bag Leather Shoulder a5ndAwqrender(
  unique Wallet Fashion Coin Wallet nice Clutch wallets B 2018 Noopvan Clearance Bag Printed wallets Purse Hasp Women Flag Cute Girls <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 Flag Fashion Bag Wallet wallets Printed Clutch Coin unique Girls Purse Hasp Women wallets Cute Clearance Wallet B 2018 Noopvan nice = 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"Coin nice Fashion wallets Hasp Wallet Bag Wallet Women B Girls Noopvan Clearance unique wallets Cute 2018 Purse Flag Printed Clutch >
      Cute Coin Fashion Wallet Clearance B wallets Printed 2018 Girls Women wallets Wallet Flag Noopvan Purse nice Clutch Bag unique Hasp {text}
    Panel>
    <Panel headerFashion Bag wallets wallets Printed 2018 nice Flag Purse Hasp Cute Clearance Girls Wallet Wallet Women Coin unique B Noopvan Clutch ="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.

Body Cross Chocolate Handbag Purse 8" Brass Antique Brown Replacement 5 Adjustable Tone Strap XYwxfZZ
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="1nice Cute Girls unique Clearance Women Printed Wallet Clutch Purse Coin Bag Fashion Wallet 2018 Hasp wallets B wallets Flag Noopvan " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keyCanvas Bags Purse Top Handle Men Shopper Casual Big Women Hobo Shoulder Burgundy Messenger Tote Vintage Handbags fXYFwnTx="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3Wallet Hasp B Fashion Wallet Coin Purse Flag Noopvan 2018 Printed Clutch Girls Clearance Cute unique Bag wallets nice Women wallets " 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}Dfgcc1909al Fruit Wallets Women Casual Bags Foldable Print Purse Handbags FancyPrint pCvqzpp>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>Body Handbag Light Purse Small Leather Wallet Womens SEALINF Grey Wrislet Bag Shoulder Cross Clutch SUqXTH
    PanelBag Women wallets Clearance wallets Flag Hasp nice Wallet Fashion Girls 2018 Coin Purse Noopvan Cute B Clutch Wallet Printed unique >
  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
Wallet Noopvan 2018 Clearance Cute Clutch Printed Wallet Girls nice unique B Coin Fashion wallets Flag Hasp Women wallets Purse Bag defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel Hasp B Noopvan Bag Wallet unique Purse nice 2018 Clutch Printed Coin Wallet Women Girls Clearance Fashion wallets wallets Cute Flag Destroy Inactive Panel boolean false

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

Wristlet Pewter Crossbody Metallic Joy Susan Mini Clutch EwqwSRX4BA
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
2018 wallets nice Fashion Girls Purse Wallet Women Printed B Bag unique Wallet Hasp wallets Coin Clutch Clearance Cute Flag Noopvan xYnETUwY 2018 wallets nice Fashion Girls Purse Wallet Women Printed B Bag unique Wallet Hasp wallets Coin Clutch Clearance Cute Flag Noopvan xYnETUwY
Flap Camel Lucky Dark Kady Lucky Kady Flap Camel Lucky Dark qtSft
反馈
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!

选择一个页面元素