Skip to content
Edit HirotoShioi/hiraku-example/mainOpen in StackBlitz

What's in the example?

This example demonstrates the core features of hiraku:

  • Dialog: A simple confirmation dialog with return values
  • Sheet: A slide-out panel for forms and content
  • AlertDialog: A confirmation dialog for destructive actions
  • Type-safe props: Full TypeScript support for modal props
  • Opening from anywhere: Call modals from event handlers, utility functions, etc.

Running locally

bash
# Clone the example repository
git clone https://github.com/HirotoShioi/hiraku-example.git
cd hiraku-example

# Install dependencies
npm install

# Start the development server
npm run dev

Released under the MIT License.