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

16 lines 729 B
import { SxProps, TypographyOwnProps } from '@mui/material'; import { PropsWithChildren } from 'react'; export type TextToComponentCollapseProps = PropsWithChildren<{ text: string; defaultVisible?: boolean; textVariant?: TypographyOwnProps['variant']; textSx?: SxProps; textContainerSx?: SxProps; collapseBoxSx?: SxProps; iconSx?: SxProps; }>; /** * Wrap any child components in a collapse, using a Typography as the trigger */ export default function TextToComponentCollapse({ text, defaultVisible, textVariant, textSx, textContainerSx, collapseBoxSx, iconSx, children, }: TextToComponentCollapseProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=TextToComponentCollapse.d.ts.map