Command Palette

Search for a command to run...

Docs
Use Disclosure

A hook that allows you to manage the open state of a component.

Installation

pnpm dlx shadcn@latest add "https://ui.ednesdayw.com/r/use-disclosure.json"

Usage

import { useDisclosure } from "@/hooks/use-disclosure"
 
const { open, onOpen, onClose, onOpenChange } = useDisclosure();

Example

Dialog