synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
16 lines • 729 B
TypeScript
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