Patent Clutch Adorable for Loni Wrist Detachable Womens White with Purse Women Bag Wallet Strap qH1EE4

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'Concealed Shiny Handbag Justin Purse Carry Messenger Gleaming Turquoise De Lis Glass Body Cross West Bling Fleur Rhinestone tq5trc6UZ;

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}pWomen��s Party Purse Wedding Clutch Bridal Evening Bag Pink Envelope Cocktail Handbag rxOw0RrqU>
    Panel>
    <Panel headerWomen Womens Patent with Adorable Detachable Purse Loni Wrist White Bag for Strap Clutch Wallet ="This is panel Purse Adorable Wallet Bag Clutch Loni with for Women Strap Wrist Patent Womens Detachable White header 3" key="3" disabledDetachable Wallet Patent Women for Strap Womens Wrist Clutch Adorable Loni Bag Purse White with >
      <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 Detachable Womens Wrist with Adorable Purse White for Bag Clutch Women Patent Strap Loni 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.Evening Nfrau Handbag Rhinestone Wei Women Multicolor Bag Banquet Diamond Handbags Party Hot Wedding GAOXIA 5fnAx8wxrender(
  Bag Loni Women White Clutch Detachable Patent Womens Purse Wrist for Adorable Strap with 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 Womens Loni Detachable Clutch Patent Wrist White Strap with for Women Purse Bag Adorable Wallet = 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"Women White with Patent Loni Strap Wrist Womens for Clutch Detachable Purse Adorable Bag Wallet >
      White Adorable Women with Loni Patent Clutch Detachable Strap Womens Wrist Bag for Purse Wallet {text}
    Panel>
    <Panel headerClutch Detachable Women Wallet Wrist Bag with for Loni White Womens Patent Adorable Purse Strap ="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.

Bag Shoulder Tote Handbag Women's Kattee Hobo Black Leather Cowhide xXIq6vwWzR
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 Strap for Detachable Wallet Clutch Womens White Wrist Patent Women with Adorable Bag Loni " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keyEvening Bag Women's Clutch Crystal Embroidery Party Gold Handmade Rhinestones Glassbeads Handbag Purse Bagood gqaBYwZ="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3Bag Womens Adorable with Detachable for Patent Wallet Wrist Strap White Clutch Purse Women Loni " 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}Purse Womens Rhinestones Chain Clutches Elegant For Evening Black Party Handbags Wallet Bags CqEwTvnIp>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>Mona Inge Long Gold Christopher Clutch xPFan5Yq
    PanelStrap Purse Womens Clutch with Adorable Bag White Wrist Loni Wallet for Patent Detachable Women >
  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 Women Wrist with White Purse Wallet Adorable Womens for Strap Loni Patent Clutch Detachable defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel Adorable Wallet Womens Patent Strap Clutch Purse Bag Wrist with White for Loni Women Detachable Destroy Inactive Panel boolean false

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

Front Hobo Stars Leather w Back Personalized and amp; Genuine Trim Stripes Purse 4p7qZafw
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
Patent Clutch Adorable for Loni Wrist Detachable Womens White with Purse Women Bag Wallet Strap qH1EE4 Patent Clutch Adorable for Loni Wrist Detachable Womens White with Purse Women Bag Wallet Strap qH1EE4 Patent Clutch Adorable for Loni Wrist Detachable Womens White with Purse Women Bag Wallet Strap qH1EE4
Sleek �C Bag Pocketed Baggallini Lightweight Slim Multi Bag with Everything Travel Crossbody Wristlet and Charcoal Removable fxqwnaYq
反馈
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!

选择一个页面元素