monday-ui-react-core
Version:
Official monday.com UI resources for application development in React.js
43 lines (42 loc) • 1.2 kB
TypeScript
import React, { FC, ReactElement } from "react";
import { VibeComponentProps, ElementContent } from "../../types";
export interface ExpandCollapseProps extends VibeComponentProps {
/**
* Component as parameter to be rendered as header
*/
headerComponentRenderer?: () => ReactElement;
/**
* Class name to add to the header of the expandable
*/
headerClassName?: string;
/**
* Class name to add to the content of the expandable
*/
contentClassName?: string;
/**
* Class name to add to the component
*/
componentClassName?: string;
/**
* Header title
*/
title?: ElementContent;
/**
* The value of the expandable section
*/
children?: ElementContent;
/**
* The expand icon font size
*/
iconSize?: number | string;
/**
* Should be open or closed by default (when rendered)
*/
defaultOpenState?: boolean;
open?: boolean;
onClick?: (event: React.MouseEvent) => void;
hideBorder?: boolean;
captureOnClick?: boolean;
}
declare const ExpandCollapse: FC<ExpandCollapseProps>;
export default ExpandCollapse;