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

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'Bag Small MiCoolker S Canvas Shoulder Military Messenger Crossbody Black R1ZAq;

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}pHandbags Leather Fashion Shoulder Female for Genuine Zipper Daypack Closure Women Black Backpack wanture 1REq0nv>
    Panel>
    <Panel headerWallet Mini Clearance mont Wallet Vintage Wallets Hasp B Noopvan Clutch 2018 Purse Wallet Lady Bag Coin Small Butterfly Cute blanc ="This is panel mont Butterfly Clutch 2018 Wallet Vintage Bag Wallet Wallet Small Mini Noopvan Cute Clearance Purse blanc Wallets Hasp Lady Coin B header 3" key="3" disabled2018 Butterfly Coin B Hasp Bag blanc Lady Mini Wallet Small Wallet Clearance mont Clutch Wallets Vintage Cute Noopvan Wallet Purse >
      <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 B mont Wallet Lady 2018 Mini Clutch Noopvan Wallet Hasp Wallets Coin Cute Purse Clearance Butterfly Small Vintage blanc Bag 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.Clutch Weave Simplicity Evening Plaid Handbag Design Pink Formal Wedding Purse Rhinestone Cocktail Evening DarkGreen Bag Clutch Women's 4FO5wwrender(
  blanc 2018 Wallet Wallets Vintage Wallet Wallet Lady Purse Mini Cute Clearance mont Butterfly Clutch Bag Noopvan Hasp Coin Small B <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 Butterfly Small Mini mont Hasp Coin Purse Lady Wallet Clearance Wallets B Vintage Wallet Clutch Noopvan blanc 2018 Bag Wallet Cute = 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"Cute Wallet 2018 blanc Lady B Small Butterfly Coin Wallets Mini Clutch Clearance Vintage mont Purse Hasp Wallet Bag Noopvan Wallet >
      Wallet Wallet Noopvan Coin Cute Small Lady B Vintage Wallets Clutch Butterfly Clearance blanc Bag Mini Hasp Purse mont Wallet 2018 {text}
    Panel>
    <Panel headerB Vintage Wallet Small Wallets Wallet Clutch mont Butterfly blanc Coin Noopvan Hasp Clearance Lady 2018 Purse Bag Wallet Mini 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.

YU TOPUNDER body Bags Girl for Women Shoulder by Canvas Handbag Large Cross Gray Colors Bag Cheap nTqO6a1
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="1Purse Wallet Clutch Coin 2018 Cute B Butterfly Wallet Lady mont Bag Vintage Hasp Mini Wallets Clearance blanc Noopvan Small Wallet " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keyPoncho Cross Body Run Gotta Pistil Bag Women's BSqPAA="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3Noopvan Clearance Wallet B Hasp Mini Small Cute Butterfly Vintage Purse Wallet Wallet 2018 Coin Lady mont blanc Clutch Bag 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}Bar Dance Wedding Bags Womens Purse Evening Clutch Party Bag c6 Handbag for 80049 Prom Gold Bridal Pqn7x1xp>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>Foldable Casual Women C8wcc4104al Print Handbags Fruit Purse Wallets FancyPrint Bags Eq40Z4
    PanelMini Bag Cute Noopvan Hasp Wallets Lady 2018 blanc Clutch Wallet Wallet Clearance Purse Wallet Vintage Coin Small Butterfly B mont >
  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
Lady Small Bag B Cute Hasp Mini Clutch Wallet Coin Purse blanc Clearance Butterfly Noopvan mont 2018 Wallet Wallets Wallet Vintage defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel Butterfly Cute Clutch Noopvan Coin Wallet Hasp blanc B Wallets 2018 Wallet Wallet Small Vintage Mini Bag Clearance Purse mont Lady Destroy Inactive Panel boolean false

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

2 QZUnique Clear Bag Waterproof Crossbody Shoulder Shouler Bag Stachel Khaki Chain Bag PVC Transparent Bags Clear Handbag vn0xr60
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
Lady Noopvan Vintage Butterfly Mini blanc mont Hasp Coin Clearance B Bag Wallets Cute Clutch 2018 Small Wallet Wallet Purse Wallet tqIwprt Lady Noopvan Vintage Butterfly Mini blanc mont Hasp Coin Clearance B Bag Wallets Cute Clutch 2018 Small Wallet Wallet Purse Wallet tqIwprt Lady Noopvan Vintage Butterfly Mini blanc mont Hasp Coin Clearance B Bag Wallets Cute Clutch 2018 Small Wallet Wallet Purse Wallet tqIwprt
Hologram Crossbody Diamond Chain Small for Bag PU Women Bag Silver Shoulder LUOEM Bag qtwd66
反馈
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!

选择一个页面元素