Meda Shell
meda/meda-shellFreeBlock
Install a Meda shell scaffold wired to the shared package.
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.jsonSource
1import {2 NavigationArea,3 ShellFrame,4 ShellHeaderFrame,5 ShellScrollableContent,6 ShellTabBar,7 type ShellTab,8} from '@medalsocial/meda'9import type { ComponentProps, ReactNode } from 'react'1011type MedaShellProps = {12 headerLeft: ReactNode13 headerRight?: ReactNode14 navigation: ReactNode15 tabs?: ShellTab[]16 activeTab?: string17 renderTabLink: ComponentProps<typeof ShellTabBar>['renderLink']18 children: ReactNode19}2021export function MedaShell({22 headerLeft,23 headerRight,24 navigation,25 tabs = [],26 activeTab,27 renderTabLink,28 children,29}: MedaShellProps) {30 return (31 <ShellFrame32 header={33 <ShellHeaderFrame34 left={headerLeft}35 center={36 tabs.length > 0 ? (37 <ShellTabBar38 tabs={tabs}39 activeTab={activeTab}40 ariaLabel="Workspace tabs"41 renderLink={renderTabLink}42 />43 ) : null44 }45 right={headerRight}46 />47 }48 navigation={<NavigationArea>{navigation}</NavigationArea>}49 content={50 <ShellScrollableContent layout="workspace" maxWidth={1120}>51 {children}52 </ShellScrollableContent>53 }54 />55 )56}
What it pulls in
npm packages
Files it writes
More from @meda
All 12 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Meda Marketingmeda-marketing | @meda | Blocks | Free | 1 dep | |
| Meda Next AppShellmeda-next-app-shell | @meda | Blocks | Free | 2 deps |
