hngprojects / hng_boilerplate_nextjs

https://deployment.nextjs.boilerplate.hng.tech
Apache License 2.0
205 stars 265 forks source link

[FEAT] - Components → DialogBox #209

Closed stephen-gift closed 1 month ago

stephen-gift commented 1 month ago

Description

Create a Dialog Box component that includes a header with text and description, and a footer that accepts multiple buttons.

Acceptance Criteria

Requirements

The Dialog Box component should support the following props:

Testing

Tasks

Figma Design (if available)

Dialog Card

Dialog card

Link

Figma Link

chumex412 commented 1 month ago

@Ayomide0123 create a variant for the dialog. A variant for success, warning, error and as indicated in the design

Ayomide0123 commented 1 month ago

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

chumex412 commented 1 month ago

Yes and it has to be dynamic to cater to the different variants and contents

Ayomide0123 commented 1 month ago

Okay, thank you very much