UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

14 lines 633 B
import { SxProps } from '@mui/material'; import { PropsWithChildren, ReactNode } from 'react'; export type ComponentCollapseProps = PropsWithChildren<{ component: ReactNode; defaultVisible?: boolean; componentContainerSx?: SxProps; collapseBoxSx?: SxProps; iconSx?: SxProps; }>; /** * Wrap any child components in a collapse, using a custom component as the trigger */ export default function ComponentCollapse({ component, defaultVisible, componentContainerSx, collapseBoxSx, iconSx, children, }: ComponentCollapseProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=ComponentCollapse.d.ts.map