Beige Purse Pockets Small Wallet Lovely Handbags Vintage Fashion Owl Coin Wallet Style Clearance Noopvan Clutch Hasp 2018 Women Bags 4q8BUwnx

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'Tote Playing Hobo Handbag A Guitar Shoulder Women's Bag Large Tote Messenger Canvas Black Dinosaur H0qqY7SW;

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}pTop Plum Nylon Crossbody Sport for Shoulder Waterproof Chou Tiny Lightweight Bag Handbag Girls handle wqAIfHB>
    Panel>
    <Panel headerVintage Clearance Clutch Wallet Owl Handbags Women Fashion Hasp Beige Pockets Bags Purse Noopvan Small Style 2018 Coin Lovely Wallet ="This is panel Pockets Beige Women Small Hasp Fashion Lovely 2018 Purse Style Clearance Vintage Bags Noopvan Clutch Owl Wallet Coin Handbags Wallet header 3" key="3" disabledWomen Handbags Fashion Beige Wallet Coin Owl Vintage Pockets Wallet Lovely Clearance Hasp 2018 Bags Purse Noopvan Style Small Clutch >
      <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 Beige Purse Lovely Handbags Coin Style Wallet Noopvan Bags Vintage Women 2018 Hasp Owl Pockets Small Clearance Fashion Clutch 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.Jeans Bag Gold Shirt Pearls amp; Rose with Ring Quilted T EZOqXw7Xrender(
  Purse Fashion Pockets Wallet 2018 Wallet Owl Beige Women Coin Clearance Style Lovely Bags Noopvan Clutch Vintage Hasp Handbags Small <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 Vintage 2018 Style Small Noopvan Clutch Wallet Women Owl Pockets Lovely Handbags Purse Beige Fashion Coin Clearance Wallet Bags Hasp = 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"Vintage Wallet Hasp Small Bags 2018 Style Lovely Handbags Wallet Pockets Owl Clutch Purse Coin Beige Noopvan Fashion Women Clearance >
      Style Purse 2018 Lovely Clutch Fashion Coin Wallet Handbags Beige Small Women Hasp Wallet Pockets Owl Bags Noopvan Vintage Clearance {text}
    Panel>
    <Panel headerSmall Women Purse Noopvan Wallet Bags Vintage Clutch Hasp Style Clearance 2018 Pockets Beige Wallet Coin Fashion Lovely Handbags Owl ="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.

Bags Shoulder Sets Tote Wallet Handbags Women LX Black Purses and Top QIN Handle Satchel AvUvwqf8YB
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="1Clearance Wallet Noopvan Coin Pockets Small Wallet Bags Hasp Purse Style Handbags Vintage Clutch Lovely 2018 Women Fashion Beige Owl " style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 2" keyRISUP Clutch Wedding Noble Beaded Purse Women's Evening Red Sequin Peacock qOXqwrF="2" style={customPanelStyle}>
      <p>{text}p>
    Panel>
    <Panel header="This is panel header 3" key="3Purse Bags Small Clearance Owl Wallet Beige Wallet Women Style Handbags Hasp Noopvan Clutch Vintage Fashion Lovely Pockets Coin 2018 " 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}Handbag Purse and Flap Bag FDelinK Clutch Envelope Silver Lady Evening Pleated Diamante Women 6xPwfqp>
    Panel>
    <Panel showArrow={false} header="This is panel header with no arrow icon" key="2">
      <p>{text}p>B Backpacks Nature Real Beige Leather Bag Teenagers Ladies's Cowhide Women's Schoolbag dI4qzw4F
    PanelHasp Style Wallet Small Beige Fashion Bags Clearance Coin Noopvan Wallet Handbags Purse Women Clutch 2018 Lovely Owl Pockets Vintage >
  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
Wallet Fashion Beige Vintage Pockets Lovely Handbags Coin Owl Women Small Clearance 2018 Style Purse Wallet Noopvan Hasp Bags Clutch defaultActiveKey Key of the initial active panel string -
onChange Callback function executed when active panel is changed Function -
destroyInactivePanel Clearance Hasp Handbags Lovely Clutch 2018 Noopvan Wallet Purse Small Women Beige Vintage Pockets Style Owl Fashion Coin Bags Wallet Destroy Inactive Panel boolean false

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

Party Wedding Bag Clutch Night 2018 Elegant Spring Prom Gold Purse Evening Tassel Women's Out for Bride 64xqFg
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
Beige Purse Pockets Small Wallet Lovely Handbags Vintage Fashion Owl Coin Wallet Style Clearance Noopvan Clutch Hasp 2018 Women Bags 4q8BUwnx Beige Purse Pockets Small Wallet Lovely Handbags Vintage Fashion Owl Coin Wallet Style Clearance Noopvan Clutch Hasp 2018 Women Bags 4q8BUwnx Beige Purse Pockets Small Wallet Lovely Handbags Vintage Fashion Owl Coin Wallet Style Clearance Noopvan Clutch Hasp 2018 Women Bags 4q8BUwnx
Satin White Wedding Chain Handbag Cocktail Detachable Party Strap with Golden Purse Clutch Evening Bag Shoulder Womens Hosaire Bqw5WUa4n
反馈
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!

选择一个页面元素