Your next page is taking shape...

Opening Your Next Page…

Loading the guide and preparing its examples for you to explore. The page will appear here automatically when it’s ready, so you can keep this view open without refreshing.

Made for Preact. Built to be yours.

Navigation & Disclosure

Sidebar

Sidebar provides a collapsible application navigation rail. Organize content into understandable destinations and reveal detail when it becomes relevant. Keep the active location or expanded state easy to recognize. Import it from @/components/kamod-ui/sidebar.

Source · API reference · Theming · Styles


Interactive Live Preview
Try it. Make it yours.

Installation

Import SidebarProvider and sidebar primitives from @/components/kamod-ui/sidebar.

Install PackagesTerminal
pnpm add @kamod-ch/ui

Copy an example with @kamod-ch/ui or the matching @kamod-ch/ui/… subpath. The code block switches between those two installs. Connect The Global Theme CSS and Tailwind Source Detection before your first render.

Usage

Wrap the layout in SidebarProvider, render Sidebar next to SidebarInset, and toggle with SidebarTrigger.

Import SetupTypeScript
import { Sidebar } from "@kamod-ch/ui";

Choose a complete composition from the examples below; required child components and props vary by pattern.

Component Examples & Variants

Explore Sidebar in Different Contexts, from the starting pattern to the compositions below. Begin with Basic Sidebar, then compare the examples that match your content, state and layout. These are working patterns to adapt, not a list of interchangeable variant values: check the API Reference before using a prop or combining behaviors. Look at the surrounding labels, supporting text and spacing as well as the component itself.

Read the Result and Its Implementation Together. Use each showcase’s Code view to inspect imports and composition, or its Prompt view to prepare a setup or adaptation brief. Try the narrow preview and local theme controls before connecting real data, and use Reset to return an example to its initial state. Keep layout changes in class utilities where appropriate; follow the Component Styles Guide for hierarchy and the Theming Guide for shared surfaces and colors. The Accessibility Notes explain what to preserve when making those changes.

Basic Sidebar

Build Navigation Around Real Destinations. Compose a sidebar with grouped navigation alongside an inset main area. The sidebar organizes destinations, while the adjacent content region supplies the current page; your routing layer decides which link represents that page.

Keep route decisions outside the visual sidebar primitives, preserve keyboard access to nested controls and test both desktop collapse and the mobile presentation with realistic link lengths.

src/components/SidebarExample.tsx28 lines
import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarProvider, SidebarTrigger, Separator } from "@kamod-ch/ui";

export const Example = () => (
  <SidebarProvider>
    <Sidebar>
      <SidebarHeader>Workspace</SidebarHeader>
      <SidebarContent>
        <SidebarGroup>
          <SidebarGroupLabel>Nav</SidebarGroupLabel>
          <SidebarGroupContent>
            <SidebarMenu>
              <SidebarMenuItem>
                <SidebarMenuButton isActive>Home</SidebarMenuButton>
              </SidebarMenuItem>
            </SidebarMenu>
          </SidebarGroupContent>
        </SidebarGroup>
      </SidebarContent>
    </Sidebar>
    <SidebarInset>
      <header class="flex h-12 items-center gap-2 border-b px-3">
        <SidebarTrigger />
        <Separator orientation="vertical" class="h-4" />
        <span class="text-sm">Dashboard</span>
      </header>
    </SidebarInset>
  </SidebarProvider>
);
API reference

Props and Data

Configure Sidebar using the contracts below. Read the documented options alongside the Source Definitions to understand which values your application supplies and which details the component owns. Start with a prop or helper, then follow its type link to inspect the declaration without leaving the page.

Props, slots and variants for this component.

API reference
Your API, from source

Type cards are extracted from this checkout’s TypeScript source at build time. Props inherited through HTMLAttributes, Omit or variant helpers remain references in those declarations; their fields are not flattened here. Match the reference to your installed version, and check a package’s exports before writing an import type. A type exported by a source file is not necessarily re-exported by @kamod-ch/ui.

Component Props

Read each option with its owning component. The
marker identifies required fields verified in that declaration. A ? means a field can be omitted; it does not promise a fallback value. Existing documented defaults remain alongside the descriptions. For callbacks, check the argument and return types before connecting your own state or services.
@kamod-ch/ui/sidebar81.5 KB min · 17.7 KB gzipSignals: via tooltip@preact/signals

Sidebar

SidebarProps

Sidebar documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarProps

Configure children for Sidebar. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarProps

Configure class for Sidebar. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
collapsible
"none" | "icon" | "offcanvas"SidebarProps

Configure collapsible for Sidebar. Compare its accepted type with the Usage Guidance before supplying a value.

Default
"offcanvas"
side
"right" | "left"SidebarProps

Configure side for Sidebar. Compare its accepted type with the Usage Guidance before supplying a value.

Default
"left"
variant
"inset" | "sidebar" | "floating"SidebarProps

Configure variant for Sidebar. Compare its accepted type with the Usage Guidance before supplying a value.

Default
"sidebar"

SidebarContent

SidebarContentProps

SidebarContent documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarContentProps

Configure children for SidebarContent. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarContentProps

Configure class for SidebarContent. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarFooter

SidebarFooterProps

SidebarFooter documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarFooterProps

Configure children for SidebarFooter. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarFooterProps

Configure class for SidebarFooter. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarGroup

SidebarGroupProps

SidebarGroup documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarGroupProps

Configure children for SidebarGroup. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarGroupProps

Configure class for SidebarGroup. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarGroupAction

SidebarGroupActionProps

SidebarGroupAction documented props
Prop / typeDescription
asChild
booleanSidebarGroupActionProps

Configure asChild for SidebarGroupAction. Compare its accepted type with the Usage Guidance before supplying a value.

Default
false
children
ComponentChild[] | ComponentChildSidebarGroupActionProps

Configure children for SidebarGroupAction. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarGroupActionProps

Configure class for SidebarGroupAction. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarGroupContent

SidebarGroupContentProps

SidebarGroupContent documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarGroupContentProps

Configure children for SidebarGroupContent. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarGroupContentProps

Configure class for SidebarGroupContent. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarGroupLabel

SidebarGroupLabelProps

SidebarGroupLabel documented props
Prop / typeDescription
asChild
booleanSidebarGroupLabelProps

Configure asChild for SidebarGroupLabel. Compare its accepted type with the Usage Guidance before supplying a value.

Default
false
children
ComponentChild[] | ComponentChildSidebarGroupLabelProps

Configure children for SidebarGroupLabel. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarGroupLabelProps

Configure class for SidebarGroupLabel. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarHeader

SidebarHeaderProps

SidebarHeader documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarHeaderProps

Configure children for SidebarHeader. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarHeaderProps

Configure class for SidebarHeader. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarInput

SidebarInputProps

SidebarInput documented props
Prop / typeDescription
class
string | SignalLike<string | undefined>SidebarInputProps

Configure class for SidebarInput. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarInset

SidebarInsetProps

SidebarInset documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarInsetProps

Configure children for SidebarInset. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarInsetProps

Configure class for SidebarInset. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarMenu

SidebarMenuProps

SidebarMenu documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarMenuProps

Configure children for SidebarMenu. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarMenuProps

Configure class for SidebarMenu. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarMenuAction

SidebarMenuActionProps

SidebarMenuAction documented props
Prop / typeDescription
asChild
booleanSidebarMenuActionProps

Configure asChild for SidebarMenuAction. Compare its accepted type with the Usage Guidance before supplying a value.

Default
false
children
ComponentChild[] | ComponentChildSidebarMenuActionProps

Configure children for SidebarMenuAction. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarMenuActionProps

Configure class for SidebarMenuAction. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
showOnHover
booleanSidebarMenuActionProps

Configure showOnHover for SidebarMenuAction. Compare its accepted type with the Usage Guidance before supplying a value.

Default
false

SidebarMenuBadge

SidebarMenuBadgeProps

SidebarMenuBadge documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarMenuBadgeProps

Configure children for SidebarMenuBadge. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarMenuBadgeProps

Configure class for SidebarMenuBadge. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarMenuButton

SidebarMenuButtonProps

SidebarMenuButton documented props
Prop / typeDescription
asChild
booleanSidebarMenuButtonProps

Configure asChild for SidebarMenuButton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
false
children
ComponentChild[] | ComponentChildSidebarMenuButtonProps

Configure children for SidebarMenuButton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarMenuButtonProps

Configure class for SidebarMenuButton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
isActive
booleanSidebarMenuButtonProps

Configure isActive for SidebarMenuButton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
false
size
"default" | "sm" | "lg"SidebarMenuButtonProps

Configure size for SidebarMenuButton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
"default"
tooltip
string | HTMLAttributes<HTMLDivElement>SidebarMenuButtonProps

Configure tooltip for SidebarMenuButton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
variant
"default" | "outline"SidebarMenuButtonProps

Configure variant for SidebarMenuButton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
"default"

SidebarMenuItem

SidebarMenuItemProps

SidebarMenuItem documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarMenuItemProps

Configure children for SidebarMenuItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarMenuItemProps

Configure class for SidebarMenuItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarMenuSkeleton

SidebarMenuSkeletonProps

SidebarMenuSkeleton documented props
Prop / typeDescription
class
string | SignalLike<string | undefined>SidebarMenuSkeletonProps

Configure class for SidebarMenuSkeleton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
showIcon
booleanSidebarMenuSkeletonProps

Configure showIcon for SidebarMenuSkeleton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
false

SidebarMenuSub

SidebarMenuSubProps

SidebarMenuSub documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarMenuSubProps

Configure children for SidebarMenuSub. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarMenuSubProps

Configure class for SidebarMenuSub. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarMenuSubButton

SidebarMenuSubButtonProps

SidebarMenuSubButton documented props
Prop / typeDescription
asChild
booleanSidebarMenuSubButtonProps

Configure asChild for SidebarMenuSubButton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
false
children
ComponentChild[] | ComponentChildSidebarMenuSubButtonProps

Configure children for SidebarMenuSubButton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarMenuSubButtonProps

Configure class for SidebarMenuSubButton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
isActive
booleanSidebarMenuSubButtonProps

Configure isActive for SidebarMenuSubButton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
false
size
"sm" | "md"SidebarMenuSubButtonProps

Configure size for SidebarMenuSubButton. Compare its accepted type with the Usage Guidance before supplying a value.

Default
"md"

SidebarMenuSubItem

SidebarMenuSubItemProps

SidebarMenuSubItem documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarMenuSubItemProps

Configure children for SidebarMenuSubItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarMenuSubItemProps

Configure class for SidebarMenuSubItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarProvider

SidebarProviderProps

SidebarProvider documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildSidebarProviderProps

Configure children for SidebarProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
string | SignalLike<string | undefined>SidebarProviderProps

Configure class for SidebarProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
defaultOpen
booleanSidebarProviderProps

Initial desktop state when uncontrolled; the mobile sheet always starts closed.

Default
true
onOpenChange
((open: boolean) => void)SidebarProviderProps

Reports requested desktop state in both controlled and uncontrolled usage.

Default
—
open
booleanSidebarProviderProps

Controlled desktop state. Mobile visibility is managed separately.

Default
—
style
string | CSSProperties | SignalLike<string | CSSProperties | undefined>SidebarProviderProps

Configure style for SidebarProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarRail

SidebarRailProps

SidebarRail documented props
Prop / typeDescription
class
string | SignalLike<string | undefined>SidebarRailProps

Configure class for SidebarRail. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarSeparator

SidebarSeparatorProps

SidebarSeparator documented props
Prop / typeDescription
class
string | SignalLike<string | undefined>SidebarSeparatorProps

Configure class for SidebarSeparator. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
decorative
booleanSidebarSeparatorProps

Configure decorative for SidebarSeparator. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
orientation
"horizontal" | "vertical"SidebarSeparatorProps

Configure orientation for SidebarSeparator. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

SidebarTrigger

SidebarTriggerProps

SidebarTrigger documented props
Prop / typeDescription
class
string | (SignalLike<string | undefined> & string)SidebarTriggerProps

Configure class for SidebarTrigger. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
onClick
MouseEventHandler<HTMLButtonElement>SidebarTriggerProps

Configure onClick for SidebarTrigger. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

Data Type Reference

Expand a card to inspect and copy the exact declaration. The code header identifies its repository file; follow imported or inherited types in the Implementation Source when you need the complete dependency chain. Required-field summaries cover fields declared directly in that type. Source-only helpers and inferred schema outputs describe the local implementation, not additional props you can pass to every component.

Sidebar Props

4 declared fields
SidebarProps
Exported Source Declaration from Sidebar.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarProps before adapting it.

SidebarContent Props

1 declared field
SidebarContentProps
Exported Source Declaration from SidebarContent.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarContentProps before adapting it.

SidebarFooter Props

1 declared field
SidebarFooterProps
Exported Source Declaration from SidebarFooter.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarFooterProps before adapting it.

SidebarInput Props

Declaration
SidebarInputProps
Exported Source Declaration from SidebarGroup.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarInputProps before adapting it.
SidebarSeparatorProps
Exported Source Declaration from SidebarGroup.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarSeparatorProps before adapting it.

SidebarGroup Props

1 declared field
SidebarGroupProps
Exported Source Declaration from SidebarGroup.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarGroupProps before adapting it.

SidebarGroupLabel Props

2 declared fields
SidebarGroupLabelProps
Exported Source Declaration from SidebarGroup.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarGroupLabelProps before adapting it.

SidebarGroupAction Props

2 declared fields
SidebarGroupActionProps
Exported Source Declaration from SidebarGroup.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarGroupActionProps before adapting it.

SidebarGroupContent Props

1 declared field
SidebarGroupContentProps
Exported Source Declaration from SidebarGroup.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarGroupContentProps before adapting it.

SidebarHeader Props

1 declared field
SidebarHeaderProps
Exported Source Declaration from SidebarHeader.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarHeaderProps before adapting it.

SidebarInset Props

1 declared field
SidebarInsetProps
Exported Source Declaration from SidebarInset.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarInsetProps before adapting it.

SidebarMenu Props

1 declared field
SidebarMenuProps
Exported Source Declaration from SidebarMenu.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarMenuProps before adapting it.

SidebarMenuItem Props

1 declared field
SidebarMenuItemProps
Exported Source Declaration from SidebarMenu.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarMenuItemProps before adapting it.

SidebarMenuButton Props

4 declared fields
SidebarMenuButtonProps
Exported Source Declaration from SidebarMenu.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarMenuButtonProps before adapting it.

SidebarMenuAction Props

3 declared fields
SidebarMenuActionProps
Exported Source Declaration from SidebarMenu.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarMenuActionProps before adapting it.

SidebarMenuBadge Props

1 declared field
SidebarMenuBadgeProps
Exported Source Declaration from SidebarMenu.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarMenuBadgeProps before adapting it.

SidebarMenuSkeleton Props

1 declared field
SidebarMenuSkeletonProps
Exported Source Declaration from SidebarMenu.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarMenuSkeletonProps before adapting it.

SidebarMenuSub Props

1 declared field
SidebarMenuSubProps
Exported Source Declaration from SidebarMenu.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarMenuSubProps before adapting it.

SidebarMenuSubItem Props

1 declared field
SidebarMenuSubItemProps
Exported Source Declaration from SidebarMenu.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarMenuSubItemProps before adapting it.

SidebarMenuSubButton Props

4 declared fields
SidebarMenuSubButtonProps
Exported Source Declaration from SidebarMenu.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarMenuSubButtonProps before adapting it.

SidebarContextValue

7 declared fields
SidebarContextValue
Exported Source Declaration from SidebarProvider.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarContextValue before adapting it.
Required fields
state, open, setOpen, openMobile, setOpenMobile, isMobile, toggleSidebar

SidebarProvider Props

4 declared fields
SidebarProviderProps
Exported Source Declaration from SidebarProvider.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarProviderProps before adapting it.

SidebarRail Props

Declaration
SidebarRailProps
Exported Source Declaration from SidebarRail.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarRailProps before adapting it.

SidebarTrigger Props

1 declared field
SidebarTriggerProps
Exported Source Declaration from SidebarTrigger.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of SidebarTriggerProps before adapting it.

Accessibility

Sidebar includes a labeled SidebarTrigger and uses Sheet for its mobile overlay. Desktop collapse and mobile open state serve different layouts. Navigation links still require application-supplied destinations, labels and current-page semantics.

Take the Next Useful Step

You have the pieces. Put them into one real interaction, keep its state in one place, and check the result with the content your application will actually show.

Connect the Foundation

Return to Choose and Compose Components to connect this reference to a working screen. Keep global CSS in one entrypoint and import only the components that screen needs.

Build the Surrounding Screen

Find a neighboring interaction in the Component Library, or start with a complete Block. Replace sample content and destinations before refining the layout; a local class change can stay with the composition.

Make the Result Hold Up

Use shared theme roles for changes that belong everywhere. Then review the whole journey: keyboard focus, long labels, narrow screens and a clear way to recover when something fails.

Keep a link to the source and note your intentional changes. Your next edit should begin with a clear decision, not another search.