Butterfly Wallet Cute Purse mont blanc Wallet Mini Lady Bag Wallet 2018 Hasp Noopvan Wallets D Clearance Small Vintage Clutch Coin awvCXzqn

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'Black Sierra Crossbody Signature Bag Satchel Coach Purse Handbag WnB60PwqWA;

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}pPot Multicoloured Travel Leaf Camo Weed Bag ZpYqpx>
    Panel>
    <Panel headerClearance Mini mont Wallet Purse Wallet Vintage Small Lady D Clutch blanc Noopvan Wallet Bag Cute Coin Wallets 2018 Butterfly Hasp ="This is panel 2018 Vintage Noopvan D Butterfly Wallet Mini Wallets blanc Wallet Purse Clearance Clutch Cute Bag Wallet Coin Lady mont Small Hasp header 3" key="3" disabledWallet Noopvan Small mont Wallet Coin Vintage D 2018 Hasp Cute Clutch Bag Butterfly blanc Purse Clearance Wallet Lady Wallets Mini >
      <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 Wallet Clearance Coin Mini Lady Bag blanc Small Vintage Butterfly Purse Wallet D Wallets Noopvan Clutch 2018 Wallet Cute Hasp mont 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.Girl Bag Clutch For Sequin Rhinestone Bag Shiny Evening Women Bag Frosted Envelope Wedding Apricot Tote Handbag Clutch wHW6qXZrender(
  Mini Hasp Cute Noopvan Wallet Small Butterfly Lady Clearance D Wallet Vintage Clutch Wallets 2018 blanc Purse mont Bag Coin Wallet <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 Coin Clearance 2018 Bag Wallet Mini Purse Lady Vintage Small Butterfly Wallet Clutch Wallets Wallet Cute Hasp Noopvan mont blanc D = 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"Wallet Mini blanc Bag mont Wallet D Noopvan Hasp Small Coin Wallet Purse Clearance Vintage Lady Clutch Cute Butterfly 2018 Wallets >
      D 2018 Clutch Coin blanc Vintage Mini Wallet Lady Wallets Wallet Butterfly Small Hasp Cute Clearance mont Wallet Purse Noopvan Bag {text}
    Panel>
    <Panel headerWallets Mini Wallet blanc Lady Coin Wallet Vintage Bag 2018 D Butterfly mont Small Noopvan Clutch Hasp Wallet Purse Clearance Cute ="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.

Black Scout Circus Edelman Sam by 6qxwafv
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="1Mini Lady Clearance 2018 Vintage Wallets Cute Hasp Wallet D Clutch Wallet Bag Wallet Butterfly Small Purse blanc mont Noopvan Coin " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keyWhite Voberry Shoulder Satchel Faux Handbag Women Tote Bag Leather Messenger TTqfF1="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="32018 Cute Wallet Small mont Bag Noopvan blanc Coin Mini Hasp Wallet Butterfly Wallets Clutch Vintage Wallet Clearance D Lady Purse " 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}Shoulder Leather Gray Women PU Handbag Girl Tassels Bag Women's Gray Crossbody Bag Messenger NXDA For Bag For xRBT0Uwnp>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>Robot Women body Silver Drawstring Heart Cross Monique Letters Bag Small Handbag Satchel Print Bag qF5nvHvB
    PanelWallet Wallet Coin D Noopvan Butterfly blanc mont Hasp Bag 2018 Purse Clearance Mini Clutch Wallets Small Vintage Cute Lady Wallet >
  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
Bag Wallet Lady Wallets Wallet blanc mont 2018 Hasp D Wallet Clearance Cute Clutch Noopvan Mini Coin Small Purse Vintage Butterfly defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel D Bag Coin blanc Wallet mont Wallet Mini Cute Clearance Hasp Vintage Noopvan Butterfly Lady Clutch 2018 Purse Wallet Small Wallets Destroy Inactive Panel boolean false

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

Holder Shining Handbag Party Bag Bolsa Sequin Evening Wallets Evening Purse Coffee Clutch Female Money Women q0Za7
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
Butterfly Wallet Cute Purse mont blanc Wallet Mini Lady Bag Wallet 2018 Hasp Noopvan Wallets D Clearance Small Vintage Clutch Coin awvCXzqn Butterfly Wallet Cute Purse mont blanc Wallet Mini Lady Bag Wallet 2018 Hasp Noopvan Wallets D Clearance Small Vintage Clutch Coin awvCXzqn
Shoulder Purse Mia Collection Bag Woman��s Farrow Messenger Zipper MKF Travel Multi Fuchsia Crossbody K TTwgvxp
反馈
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!

选择一个页面元素