Right Dock
Context dock for inspectors, summaries, and secondary canvas panels. Install Right Dock from the VLLNT UI registry with the shadcn CLI.
Context dock for inspectors, summaries, and secondary canvas panels. Part of the navigation family in VLLNT UI, it ships as a machine-readable registry entry — copy the source directly into your app with the shadcn CLI and own it, no runtime dependency on a component library.
Preview
Switch between light and dark to inspect the embedded Storybook preview.
Installation
Add Right Dock to your project with the shadcn CLI. The source lands in your codebase, ready to adapt:
pnpm dlx shadcn@latest add https://ui.vllnt.ai/r/right-dock.jsonSource
import type { ReactNode } from "react";
import { cn } from "../../lib/utils";
export type RightDockProps = React.ComponentPropsWithoutRef<"aside"> & {
footer?: ReactNode;
header?: ReactNode;
title?: ReactNode;
};
const RightDock = ({
children,
className,
footer,
header,
ref,
title,
...props
}: RightDockProps & { ref?: React.Ref<HTMLElement> }) => (
<aside
className={cn(
"flex h-full min-w-[18rem] max-w-[24rem] shrink-0 flex-col border-l border-border bg-background",
className,
)}
ref={ref}
{...props}
>
{header || title ? (
<div className="border-b border-border/60 px-4 py-3">
{title ? (
<div className="text-sm font-medium text-foreground">{title}</div>
) : null}
{header ? <div className="mt-2">{header}</div> : null}
</div>
) : null}
<div className="flex-1 overflow-auto p-4">{children}</div>
{footer ? (
<div className="border-t border-border/60 p-4">{footer}</div>
) : null}
</aside>
);
RightDock.displayName = "RightDock";
export { RightDock };
Stories
Explore every variant and state in the interactive Storybook:
Preview
Switch between light and dark to inspect the embedded Storybook preview.