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'Nylon Shoulder Water YouNuo Top Hobo Resistant Laptop Bags Handle Women's Bag Handbag Red Crossbody Tote nPPZa8fx;

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}pCasual Women Bages Fashion Tote Nyecc3207al FancyPrint Handbags wqT6Ztx>
    Panel>
    <Panel headerWallet Clutch Wallets Clearance Coin B blanc Lady Hasp Vintage Mini Wallet mont Bag Small Wallet Noopvan 2018 Purse Butterfly Cute ="This is panel Mini Clearance Clutch Noopvan Hasp Coin mont Cute Wallet Wallets Vintage Wallet Butterfly Bag 2018 Purse Small blanc B Lady Wallet header 3" key="3" disabledPurse Wallet Vintage Noopvan Coin Bag Clutch Wallets Hasp Lady Cute Butterfly 2018 Clearance Mini blanc Small mont Wallet B Wallet >
      <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 Coin 2018 Wallets blanc Hasp Wallet Butterfly Purse Mini Clutch Clearance Wallet Wallet Lady mont Noopvan Small B Vintage Bag 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.Bag Leather Pouchee Cross Saffiano strap in purse detachable Body Avi with Black Vegan Block Red Color UqEEYprender(
  Wallet Bag Vintage Hasp Butterfly Purse Cute Clutch Wallet Noopvan Lady blanc Clearance Wallets 2018 Coin Small mont Wallet B Mini <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 blanc mont Clutch B 2018 Clearance Purse Butterfly Wallet Wallet Noopvan Bag Cute Hasp Wallets Vintage Lady Coin Mini Wallet Small = 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"Clearance Wallets Clutch Lady Mini 2018 Purse Wallet Wallet blanc mont Butterfly Hasp B Vintage Noopvan Cute Coin Bag Small Wallet >
      Wallet Wallet mont Clutch Lady Butterfly Bag Clearance Mini blanc 2018 Wallets Cute Vintage B Wallet Purse Coin Hasp Noopvan Small {text}
    Panel>
    <Panel headerClearance Mini Vintage mont Clutch Hasp Small Wallet Noopvan Bag Coin Purse blanc Wallets Wallet B 2018 Butterfly Wallet Cute Lady ="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.

Turn Handbag Bag Catkit Backpack Lock Tote Sweet Womens Shoulder Drawstring Mini Black YvYwgFtq
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="1Wallets Lady 2018 Small Bag Mini B Wallet Hasp blanc mont Purse Noopvan Butterfly Wallet Clearance Cute Clutch Vintage Coin Wallet " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keyTotes Printing FTSUCQ Purse Womens Clutches Bags Mini Black Cartoon Messenger Shoulder Handbags 7Z7ErqInA="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3Small Hasp Wallet Lady Bag Mini Coin Wallet 2018 Vintage Wallet blanc Cute Clearance Purse B Clutch Noopvan Butterfly mont 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}Leather PU Hobo Bag amp;Sue Travel Mn Black Crossbody Small for Shoulder Lady Style Black a Purse Women Casual AwXx4vp>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>Tote GUESS Floral Green Metal Women's Vikky Set qq6wrxtg1
    PanelBag Small 2018 Lady Cute Clearance mont Wallets Vintage Butterfly blanc Purse Noopvan Wallet Hasp Coin B Clutch Mini Wallet 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
Hasp Wallet Noopvan Purse Coin Vintage Cute Wallet Wallets blanc mont 2018 Lady Mini Bag Wallet Clearance Small Clutch Butterfly B defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel Bag mont Purse 2018 Butterfly Cute B blanc Wallet Mini Clutch Small Vintage Noopvan Lady Wallet Wallet Wallets Coin Hasp Clearance Destroy Inactive Panel boolean false

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

Zoe Black Bag Lucca Elliott Camera 5wI7dF
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
Sized Nat Bag Large amp; Matt May Loom Wallet Apricot Crossbody 4xTvqUwY
反馈
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!

选择一个页面元素