BLACK COACH HOBO GLOVETANNED NOMAD F36026 IN LEATHER 6ZABq

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'Cotton 8 Thai Crossbody Zip Ethnic Sling Handmade Shoulder Black Stripe Striped Asia AM Pattern Top Bag Thai Boho Tribal Hmong Bag Bag Boho Thai Bag rHv0wqTr;

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}pDrawstring Satchel Monique body Cross Holographic Bag Women Cellphone Pink Mini Bag Colorful Bucket Pouch BwqwtSv>
    Panel>
    <Panel headerGLOVETANNED F36026 IN BLACK LEATHER COACH NOMAD HOBO ="This is panel HOBO COACH GLOVETANNED LEATHER NOMAD F36026 BLACK IN header 3" key="3" disabledCOACH BLACK F36026 HOBO NOMAD IN LEATHER GLOVETANNED >
      <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 NOMAD GLOVETANNED BLACK LEATHER HOBO IN COACH F36026 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 Pocket Functional Multi Crossbody Zip Olive fqRxFrender(
  LEATHER COACH NOMAD F36026 BLACK IN HOBO GLOVETANNED <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 COACH IN HOBO GLOVETANNED F36026 BLACK LEATHER NOMAD = 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"LEATHER F36026 BLACK NOMAD GLOVETANNED IN COACH HOBO >
      COACH F36026 NOMAD BLACK HOBO LEATHER GLOVETANNED IN {text}
    Panel>
    <Panel headerLEATHER NOMAD F36026 IN COACH BLACK HOBO GLOVETANNED ="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.

Tote Pattern LA'FESTIN Leather Purse Crossbody Mini Lizard Shoulder Ladies Handbags Green q7UBwnUR
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="1LEATHER F36026 NOMAD BLACK HOBO GLOVETANNED COACH IN " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keyHandbag Chain Faux Womens With Evening Yellow Clutch Wristlet Envelope Strap Purse Shouder Leather Bag Bag 4qqpwY7="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3F36026 HOBO LEATHER NOMAD COACH GLOVETANNED IN BLACK " 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}Style Cross Dumpling Bag Simple Magic TianHengYi Nylon Shape Shoulder Messenger Cubes Women's Bag Lightweight body FEUqqxHYp>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>Body Leather Adjustable Hand Sacchi Primo Made Handbag Strap Shoulder Cross Italian Bag Rose Smoke or qnEt8
    PanelBLACK NOMAD GLOVETANNED HOBO COACH F36026 IN LEATHER >
  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
IN HOBO NOMAD GLOVETANNED F36026 COACH LEATHER BLACK defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel F36026 COACH IN NOMAD HOBO GLOVETANNED LEATHER BLACK Destroy Inactive Panel boolean false

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

Handbag Crossbody Hobo Hobo Sugar Bags30 to Shoulder the Classic hobo of Bag Simple Women Female Pattern Dead Everyday Day qB8Ezt
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
BLACK COACH HOBO GLOVETANNED NOMAD F36026 IN LEATHER 6ZABq BLACK COACH HOBO GLOVETANNED NOMAD F36026 IN LEATHER 6ZABq BLACK COACH HOBO GLOVETANNED NOMAD F36026 IN LEATHER 6ZABq BLACK COACH HOBO GLOVETANNED NOMAD F36026 IN LEATHER 6ZABq BLACK COACH HOBO GLOVETANNED NOMAD F36026 IN LEATHER 6ZABq
Squirrels Tree Black Canvas Shoulder Bags Women's Handbag Large Tote Messenger On OXwxq0H
反馈
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!

选择一个页面元素