import React from "react"; import styles from "./index.less"; import { Collapse, Select } from "antd"; import { SettingOutlined } from "@ant-design/icons"; const { Panel } = Collapse; const { Option } = Select; 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. `; const genExtra = () => ( { // If you don't want click extra trigger collapse, you can prevent this: event.stopPropagation(); }} /> ); class Demo extends React.Component { state = { expandIconPosition: "left" }; onPositionChange = expandIconPosition => { this.setState({ expandIconPosition }); }; render() { const { expandIconPosition } = this.state; return (
{text}
{text}
{text}

Expand Icon Position:
); } } export default () => (
);