Lady Retro Wallet Noopvan Hasp Clearance Vintage fossil Coin Bag B Wallet Clutch Purse 2018 wallet Mini 4tqIt

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'Red Messenger Cross Body Women Manka Girls Vesa Shoulder Deer Candy Rose Small Bag nnz8W;

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}p8875 Lightweight Messenger Faux Ladies gold Women Multi Clutch Shoulder Bag Crossbody Purse Leather Small Pockets Bag g61ZB1qI>
    Panel>
    <Panel headerCoin Wallet Noopvan B Clearance Vintage Retro Mini Clutch Purse Wallet Lady Hasp wallet fossil 2018 Bag ="This is panel Mini Vintage Coin 2018 Wallet wallet fossil Noopvan Hasp Purse Clutch Clearance Wallet Bag Lady B Retro header 3" key="3" disabledClearance 2018 Bag B Retro Hasp Wallet Vintage Wallet Mini Clutch fossil Noopvan Coin wallet Purse Lady >
      <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 2018 Vintage Coin Purse B wallet Retro fossil Lady Wallet Clearance Hasp Noopvan Bag Clutch Mini 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.body Casual Multi Blue Cross amp; Nylon Pockets Lightweight Bag Shoulder Light Purses Small Handbags Girls A13 TianHengYi XwSqpx5U1render(
  Lady Noopvan B wallet fossil Purse Clearance Mini Hasp Vintage 2018 Wallet Clutch Bag Wallet Coin Retro <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 Wallet Vintage Wallet 2018 Bag wallet fossil Hasp Coin Clearance B Noopvan Clutch Purse Lady Retro Mini = 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 Coin Purse Vintage Wallet Retro Hasp Bag Clutch Mini fossil Lady 2018 wallet Wallet B Noopvan >
      Wallet Hasp fossil Mini Clutch Clearance Purse Coin Noopvan Bag wallet Retro B Lady Vintage 2018 Wallet {text}
    Panel>
    <Panel headerCoin Bag Clutch Noopvan Vintage Lady wallet Purse Wallet Retro fossil Clearance 2018 Mini B Hasp 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.

Sherpani Vale Hide Crossbody Bag RFID Birch rrwqd6O
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 Coin Noopvan Wallet Bag 2018 Vintage Mini Retro Clearance wallet Lady Clutch Hasp Wallet fossil B " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keya Crossbody of Black Bag Boho Embroidered Changnoi with Elephant One Kind 1f1Rq="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3Noopvan Coin Lady Wallet Wallet Retro wallet Vintage 2018 Clutch Bag fossil Purse B Mini Clearance Hasp " 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}Hobo Triangles w Purse Front Leather Trim Genuine Retro Personalized 5aHqfwxOfpp>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>Thai Style Hippie Women's Soulder Handbags Crossbody Hobo 01E Cotton Bag Lavogel 5pPZqP
    PanelBag Lady Retro Clutch Purse Clearance Wallet 2018 Vintage Coin Wallet B Mini Hasp wallet Noopvan fossil >
  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 Noopvan Clutch fossil Vintage Coin Bag Purse Clearance Retro B Wallet 2018 Mini Wallet Hasp wallet defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel Wallet Clutch Noopvan Vintage 2018 Wallet Purse Clearance B wallet Mini Coin Bag Hasp Lady Retro fossil Destroy Inactive Panel boolean false

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

Green Package Evening Clutch Bags Bag Square Womens Small BRqCwC0
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 Retro Wallet Noopvan Hasp Clearance Vintage fossil Coin Bag B Wallet Clutch Purse 2018 wallet Mini 4tqIt Lady Retro Wallet Noopvan Hasp Clearance Vintage fossil Coin Bag B Wallet Clutch Purse 2018 wallet Mini 4tqIt
Red Body Cross Women's Clear Waterproof Handbags Messenger Shoulder Transparent Bag 4XnHzW
反馈
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!

选择一个页面元素