Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Feature - Modal component [Dev]Β #60

@omarefg

Description

@omarefg

Checklist βœ…

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary πŸ’‘

The Modal component is a way to provide the user information that do have another context but not necessarily needs the user to go to another module.

Screenshot from 2021-11-14 09-33-52

It will be used this way:

import { Modal } from '@platily-ui/components'

const MyComponent = () => {
  return (
    <Modal>
      <p>Title</p>
      <div> Content </div>
    </Modal>
  )
}

As dialog is still experimental we'll be using div as root tag, the component shoudl receive:

  • All HTML props for div element
  • isOpen (if true the modal is shown, otherwise is hidden) required
  • children (the component needs to be extendable to use whatever the user wants, so all the content is passed as children)

Requirements 🌈

  • The components neets to be tested using unit testing

Motivation πŸ”¦

to provide the user information that do have another context but not necessarily needs the user to go to another module.

Metadata

Metadata

Assignees

Labels

componentsA components featurefeatureNew feature or requestweight:5something that need work

Type

No type
No fields configured for issues without a type.

Projects

Status
Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions