Modal
Modal(props: ): ReactElement<WithOptionalTheme<
Modal<AsC,FAsC>(props: StyledComponentPropsWithAs<AsC, any, , never, AsC, FAsC>): ReactElement<StyledComponentPropsWithAs<AsC, any, , never, AsC, FAsC>, string | JSXElementConstructor<any>>
Parameters
(Mandatory parameters are in bold)Parameters | Type | Description |
---|---|---|
props | ||
animationDuration | number | |
animationDuration | number | |
animationDuration | number | |
animationDuration | number | |
as | undefined | |
as | undefined | |
attachToBody | boolean | |
attachToBody | boolean | |
attachToBody | boolean | |
attachToBody | boolean | |
buttons | ||
buttons | ||
buttons | ||
buttons | ||
children | ReactNode | |
children | ReactNode | |
children | ReactNode | |
children | ReactNode | |
className | string | |
className | string | |
className | string | |
className | string | |
closeIcon | boolean | |
closeIcon | boolean | |
closeIcon | boolean | |
closeIcon | boolean | |
closeOnClickOutside | boolean | |
closeOnClickOutside | boolean | |
closeOnClickOutside | boolean | |
closeOnClickOutside | boolean | |
closeOnEscape | boolean | |
closeOnEscape | boolean | |
closeOnEscape | boolean | |
closeOnEscape | boolean | |
forwardedAs | undefined | |
forwardedAs | undefined | |
height | string | 0 | 2 | 1 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | |
height | string | 0 | 2 | 1 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | |
height | string | 0 | 2 | 1 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | |
height | string | 0 | 2 | 1 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | |
onClose | ||
onClose | ||
onClose | ||
onClose | ||
onClosed | ||
onClosed | ||
onClosed | ||
onClosed | ||
open | boolean | |
open | boolean | |
open | boolean | |
open | boolean | |
size | TshirtSize | |
size | TshirtSize | |
size | TshirtSize | |
size | TshirtSize | |
theme | any | |
theme | any | |
title | ReactNode | |
title | ReactNode | |
title | ReactNode | |
title | ReactNode | |
width | string | 0 | 2 | 1 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | |
width | string | 0 | 2 | 1 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64Partial<>, any>, string | JSXElementConstructor<any>> | |
width | string | 0 | 2 | 1 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | |
width | string | 0 | 2 | 1 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64Partial<>, any>, string | JSXElementConstructor<any>> |
Return
The return is of type ReactElement<WithOptionalTheme<