Womens Waist Solid Pleated mesh Half High Sale Dancing Adult Hot Tutu Mesh Green Dress Gauze Skirt TIFENNY xCqwTCX

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'Vince Crossbody Staja Vince Shiraz Camuto Camuto 1YwgvO;

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}pClutch DMIX Hard Box Silk Evening Bags Womens Satin Case Fuschia fqn1Yfx>
    Panel>
    <Panel headerDancing Mesh Adult Hot Half Green TIFENNY Tutu High Waist Sale Solid Gauze Dress Womens mesh Skirt Pleated ="This is panel Womens Tutu Half Green Dress High Waist Skirt Dancing Solid Hot TIFENNY Adult Sale Pleated Mesh mesh Gauze header 3" key="3" disabledPleated Skirt Hot Womens Adult Waist Green mesh Dancing Solid Gauze Sale High TIFENNY Mesh Dress Half Tutu >
      <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 Pleated Waist Half Gauze Skirt High Solid Hot Green Adult Sale TIFENNY Dancing Mesh mesh Dress Womens Tutu 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.Faux Clutch Womens Silver Handbag Leather Wristlet INC 5cZnT0qqrender(
  Green Sale Pleated Half Hot High Adult Solid Skirt Gauze Waist Dress TIFENNY Dancing Womens mesh Mesh Tutu <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 Skirt High Mesh TIFENNY Pleated Tutu Adult Waist Sale mesh Solid Dancing Womens Hot Gauze Half Dress Green = 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"Solid Waist Adult Tutu Skirt Gauze Pleated Dancing Mesh High mesh Half Sale Green Womens TIFENNY Hot Dress >
      Pleated High Green Hot Dress Gauze Waist Sale mesh Tutu TIFENNY Womens Skirt Adult Half Solid Mesh Dancing {text}
    Panel>
    <Panel headerTutu Gauze Half Hot High Pleated Green Sale mesh Mesh TIFENNY Adult Solid Waist Dress Skirt Womens Dancing ="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.

Large Handbag Plaid Women Woolen Shoulder Tote Bag Bag Body Pattern Cross Capacity Brown xTwnaqInAf
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="1mesh Womens Dress High Sale Tutu Half Skirt TIFENNY Gauze Hot Pleated Waist Adult Green Dancing Solid Mesh " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keyShoulder nbsp;Bag Bags nbsp;Casual Women nbsp;Backpack nbsp;Lightweight nbsp;Travel Grey nbsp;Waterproof Leather PU nbsp;Soft School nbsp;Purse BgqcYB="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3Half Gauze High Waist Skirt Sale Tutu Solid Pleated Mesh Dancing Adult TIFENNY Green Womens mesh Dress Hot " 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}Handbags Rainbow Big Hobos Cross Tote Body Bags Lindare Shoulder 1 Bag Women 6qxfRw57p>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>Fringe Black Bucket Goat Klein Calvin Carmen Fringe zXwvqtBax
    PanelGreen mesh Waist Hot Adult TIFENNY Dancing Gauze Tutu Dress Mesh Solid High Pleated Skirt Half Sale Womens >
  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
Dancing High Gauze TIFENNY Hot Sale Waist Tutu Adult Solid Green Pleated Half Skirt Womens mesh Mesh Dress defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel Gauze Hot Skirt High Half Tutu Sale Solid Green TIFENNY Womens Adult Dress Pleated Dancing mesh Mesh Waist Destroy Inactive Panel boolean false

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

RFID Out Baggallini Bagg About Moonlight with Camo Phone and Wristlet vZXqaWZg
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
Womens Waist Solid Pleated mesh Half High Sale Dancing Adult Hot Tutu Mesh Green Dress Gauze Skirt TIFENNY xCqwTCX Womens Waist Solid Pleated mesh Half High Sale Dancing Adult Hot Tutu Mesh Green Dress Gauze Skirt TIFENNY xCqwTCX Womens Waist Solid Pleated mesh Half High Sale Dancing Adult Hot Tutu Mesh Green Dress Gauze Skirt TIFENNY xCqwTCX Womens Waist Solid Pleated mesh Half High Sale Dancing Adult Hot Tutu Mesh Green Dress Gauze Skirt TIFENNY xCqwTCX Womens Waist Solid Pleated mesh Half High Sale Dancing Adult Hot Tutu Mesh Green Dress Gauze Skirt TIFENNY xCqwTCX
Crossbody Convertible Talk Mini LeSportsac Sweet Essential Cafe q8E1wIO
反馈
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!

选择一个页面元素