Skip to content
/ hiki Public

react dialog component that turn into drawer on small viewport

License

Notifications You must be signed in to change notification settings

monodyle/hiki

Repository files navigation


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

Preview

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

Quick start

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

function Application() {
  return (
    <Dialog target={({ open }) => <button onClick={open}>Open Dialog</button>}>
      <div className="content">
        {({ close }) => (
          {/* Your code here */}
        )}
      </div>
    </Dialog>
  )
}

Development

yarn # install dependencies
yarn dev # make it awesome

Author

References

Inspired by Devon Govett

License

MIT © Monody Le 2023+

About

react dialog component that turn into drawer on small viewport

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published