open-index/open-npm huggingface dataset:
npm package: @seryllns/react-usemodal
Description: ## Installation
Latest version: 0.1.1

# React Modal package for OpenClassroom formation

## Installation

```sh
  npm i @seryllns/react-usemodal
```

## usage

```javascript
  import Modal from "@seryllns/react-usemodal"

  function App() {
  return (
    <div className="App">
      <Modal title={"toto"}>
        <ul>
          <li>Pommes</li>
          <li>Poires</li>
          <li>Bananes</li>
        </ul>
      </Modal>
  );
}
```

## modal props

| Argument    | Type     | Description            | required      |
| ----------- | -------- | ---------------------- | ------------- |
| title       | `string` | Title display on modal | \*            |
| children    | `string` | Modal content          | \*            |
| initialOpen | `string` | Default modal open     | default=false |