import type { StoryDefault } from "@ladle/react"; import { Display, Screen, Surface } from "../src/components/surface.js"; import { ScrollArea } from "../src/components/scroll-area.js"; export const Surfaces = () => (

Molded surfaces

A recessed surface, with no built-in content padding or behavior.
{Array.from({ length: 20 }, (_, index) => (

Mounted item {index + 1}

))}
); export const SizesAndDepths = () => (

One casing, two depths

Size controls the rim—not the content dimensions. Depth is independent.

{(["shallow", "deep"] as const).map((depth) => (

{depth}

{(["sm", "md", "lg"] as const).map((size) => (

{size.toUpperCase()}

/media

))}
))}
); export const ScreenMaterial = () => (

Theme-native display

The standard theme surface and content colors, with recessed edges and the theme's sans voice. Apply mono to machine values inside the screen; the screen itself does not change the content's typography.

COMPUTER
Workbench
DIRECTORY
/media
READ · ALLOWED WRITE · ALLOWED
Workbench /media

The same screen material also works without a casing:

0123456789 · Aa Bb Cc · /media/alpine-light.jpg
); export const DisplayDensity = () => (

Display gasket density

{( [ ["normal", "Default"], ["compact", "Compact"], ] as const ).map(([density, label]) => (

{label}

COMPUTER Workbench /media
))}
); export const Embedded = () => (

Recesses in an existing casing

Embedded placement removes only the exterior surround. The lip, recess and screen layers stay intact.

EMBEDDED · NO OUTER HALO
STANDALONE · OUTER SURROUND
); export const ScrollingScreen = () => (
{Array.from({ length: 20 }, (_, index) => (

Conversation {index + 1}

))}
); export default { title: "Surfaces / Surface" } satisfies StoryDefault;