An open API service indexing awesome lists of open source software.

https://github.com/monodyle/hiki

react dialog component that turn into drawer on small viewport
https://github.com/monodyle/hiki

dialog drawer modal react react-aria

Last synced: 4 months ago
JSON representation

react dialog component that turn into drawer on small viewport

Awesome Lists containing this project

README

          







hiki - a dialog will turn into a drawer on small viewport

## Preview

Preview the example on https://hiki.minhle.space/

## Quick start

### Uncontrolled

```jsx
import { Dialog } from "@monodyle/hiki"; // not published yet...

function Application() {
return (
Open Dialog}>
{({ close }) => (


{/* your code goes here */}

)}

)
}
```

### Controlled

```jsx
import { Dialog } from "@monodyle/hiki"; // not published yet...

function Application() {
const [open, setOpen] = useState(false)

return (
setOpen(true)}>Open Dialog}>


{/* your code goes here */}


)
}
```

## Development

```
yarn # install dependencies
yarn dev # make it awesome
```

## Author

- [@monodyle](https://github.com/monodyle/) - [Twitter](https://twitter.com/monodyle)

### References

Inspired by [Devon Govett](https://twitter.com/devongovett)

## License

MIT © Monody Le 2023+