BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/@meda/meda-shell-state

Meda Shell State

meda/meda-shell-state
FreeHook

Install a host-facing shell state provider wrapper.

Live preview

live · rendered by the registry
Rendered by @meda on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://meda.medalsocial.com/r/meda-shell-state.json

Source

registry/meda/meda-shell-state/use-meda-shell-state.tsxmeda.medalsocial.com/r/meda-shell-state.json
1import { ShellStateProvider, useShellState } from '@medalsocial/meda'
2import type { ReactNode } from 'react'
3
4export function AppShellStateProvider({
5 children,
6 searchParams,
7 setSearchParams,
8 activeRail = 'home',
9 selectionQueryParam = 'selection',
10 storageKey = 'app.side-panel.width',
11}: {
12 children: ReactNode
13 searchParams: URLSearchParams
14 setSearchParams: (updater: (current: URLSearchParams) => URLSearchParams) => void
15 activeRail?: string
16 selectionQueryParam?: string
17 storageKey?: string
18}) {
19 return (
20 <ShellStateProvider
21 adapter={{ searchParams, setSearchParams }}
22 initialActiveRail={activeRail}
23 selectionQueryParam={selectionQueryParam}
24 sidePanelWidthStorageKey={storageKey}
25 >
26 {children}
27 </ShellStateProvider>
28 )
29}
30
31export { useShellState as useMedaShellState }

What it pulls in

npm packages

  • @medalsocial/meda

Files it writes

  • registry/meda/meda-shell-state/use-meda-shell-state.tsx

Facts

Registry
@meda
Type
registry:hook
Access
Free
Files written
1
Licence
Apache-2.0
First indexed
2026-08-03
Last confirmed
today

Go to the source

Docs on @meda meda.medalsocial.com Medal-Social/meda on GitHub Raw registry item This item as JSON
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex