Closed stephen-gift closed 1 month ago
@Ayomide0123 create a variant for the dialog. A variant for success, warning, error and as indicated in the design
the one in the design I'm assuming is a warning variant, am I to create two additional dialog components (success and error)? I was of the assumption that since the component I'm creating is making use of props, the values of those props would determine the dialogbox variant @chumex412
Yes and it has to be dynamic to cater to the different variants and contents
Okay, thank you very much
Description
Create a Dialog Box component that includes a header with text and description, and a footer that accepts multiple buttons.
Acceptance Criteria
headerText
anddescription
.Requirements
The Dialog Box component should support the following props:
headerText: string
- Required text to be displayed in the header.description?: string
- Optional description to be displayed under the header text.buttons: React.ReactNode[]
- An array of button components to be displayed in the footer.Testing
Tasks
headerText
,description
, andbuttons
props.Figma Design (if available)
Dialog Card
Link
Figma Link