Modal

 

Live example


Properties

Name

Values

Default

title (required)

ReactNode

 

subtitle

string

 

primaryButton

{ label: string; onClick: Function; testID: string }

 

secondaryButton

{ label: string; onClick: Function; testID: string }

 

headingComponent

string | ComponentType<any>

Heading3

autoFocus

boolean

false

children

ReactNode

 

…

Omit<JSX.IntrinsicElements['div'], 'role' | 'title'>

 


Composition

Composititon
  1. Overlay
  2. Content area
  3. Close button
  4. Fixed action area
Composititon
  1. Overlay
  2. Content area
  3. Close button
  4. Fixed action area