rc-collapse

  • Version 3.9.0
  • Published
  • 52.4 kB
  • 4 dependencies
  • MIT license

Install

npm i rc-collapse
yarn add rc-collapse
pnpm add rc-collapse

Overview

rc-collapse ui component for react

Index

Variables

variable _default

const _default: any;

    variable Panel

    const Panel: any;
    • Deprecated

      use items instead, will be removed in v4.0.0

    Interfaces

    interface CollapsePanelProps

    interface CollapsePanelProps extends React.DOMAttributes<HTMLDivElement> {}

      property accordion

      accordion?: boolean;

        property children

        children?: React.ReactNode;

          property className

          className?: string;

            property classNames

            classNames?: {
            header?: string;
            body?: string;
            };

              property collapsible

              collapsible?: CollapsibleType;

                property destroyInactivePanel

                destroyInactivePanel?: boolean;

                  property expandIcon

                  expandIcon?: (props: object) => React.ReactNode;

                    property extra

                    extra?: string | React.ReactNode;

                      property forceRender

                      forceRender?: boolean;

                        property header

                        header?: string | React.ReactNode;

                          property headerClass

                          headerClass?: string;

                            property id

                            id?: string;

                              property isActive

                              isActive?: boolean;

                                property onItemClick

                                onItemClick?: (panelKey: React.Key) => void;

                                  property openMotion

                                  openMotion?: CSSMotionProps;

                                    property panelKey

                                    panelKey?: React.Key;

                                      property prefixCls

                                      prefixCls?: string;

                                        property role

                                        role?: string;

                                          property showArrow

                                          showArrow?: boolean;

                                            property style

                                            style?: object;

                                              property styles

                                              styles?: {
                                              header?: React.CSSProperties;
                                              body?: React.CSSProperties;
                                              };

                                                interface CollapseProps

                                                interface CollapseProps {}

                                                  property accordion

                                                  accordion?: boolean;

                                                    property activeKey

                                                    activeKey?: React.Key | React.Key[];

                                                      property children

                                                      children?: React.ReactNode;

                                                        property className

                                                        className?: string;

                                                          property collapsible

                                                          collapsible?: CollapsibleType;

                                                            property defaultActiveKey

                                                            defaultActiveKey?: React.Key | React.Key[];

                                                              property destroyInactivePanel

                                                              destroyInactivePanel?: boolean;

                                                                property expandIcon

                                                                expandIcon?: (props: object) => React.ReactNode;

                                                                  property items

                                                                  items?: ItemType[];
                                                                  • Collapse items content 3.6.0

                                                                  property onChange

                                                                  onChange?: (key: React.Key[]) => void;

                                                                    property openMotion

                                                                    openMotion?: CSSMotionProps;

                                                                      property prefixCls

                                                                      prefixCls?: string;

                                                                        property style

                                                                        style?: object;

                                                                          Package Files (3)

                                                                          Dependencies (4)

                                                                          Dev Dependencies (24)

                                                                          Peer Dependencies (2)

                                                                          Badge

                                                                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/rc-collapse.

                                                                          • Markdown
                                                                            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/rc-collapse)
                                                                          • HTML
                                                                            <a href="https://www.jsdocs.io/package/rc-collapse"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>