• Represents a collapsible component.

    Parameters

    • props: {
          content: ReactElement<any, string | JSXElementConstructor<any>>;
          headline: ReactElement<any, string | JSXElementConstructor<any>>;
          headlineStateAddon?: ReactElement<any, string | JSXElementConstructor<any>>;
          initialState?: boolean;
          type?: CollapsibleComponentType;
      }
      • content: ReactElement<any, string | JSXElementConstructor<any>>

        represents the content of the component which can be expanded/collapsed.

      • headline: ReactElement<any, string | JSXElementConstructor<any>>

        represents the component that is displayed inline with the expand/collapse arrow.

      • OptionalheadlineStateAddon?: ReactElement<any, string | JSXElementConstructor<any>>

        addon element, next to state indicator.

      • OptionalinitialState?: boolean

        Default true - represents the content of the component which can be expanded/collapsed.

      • Optionaltype?: CollapsibleComponentType

        Default 'single' - represents the content of the component which can be expanded/collapsed.

    Returns ReactElement