Use Local Storage
shadcn-io/use-local-storagePaidHook
React useLocalStorage hook for persistent state. useState API, JSON serialization, cross-tab sync, SSR safe. TypeScript ready.
Install it
npx shadcn@latest add https://shadcn.io/r/use-local-storage.jsonThis registry keeps its source behind a paywall, so there is nothing to show here. The install command is still correct — it will ask for credentials.
What it pulls in
npm packages
Files it writes
More from shadcn-io
All 7,783 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Use Booleanuse-boolean | shadcn-io | Hooks | Paid | no deps | |
| Use Click Anywhereuse-click-anywhere | shadcn-io | Hooks | Paid | no deps | |
| Use Copy To Clipboarduse-copy-to-clipboard | shadcn-io | Hooks | Paid | 1 dep | |
| Use Countdownuse-countdown | shadcn-io | Hooks | Paid | no deps | |
| Use Counteruse-counter | shadcn-io | Hooks | Paid | no deps | |
| Use Dark Modeuse-dark-mode | shadcn-io | Hooks | Paid | 1 dep | |
| Use Debounce Callbackuse-debounce-callback | shadcn-io | Hooks | Paid | 2 deps | |
| Use Debounce Valueuse-debounce-value | shadcn-io | Hooks | Paid | 1 dep |
