Loading component…
Loading component…
Isometric stack of five layers with a list beside it
import { LayerStack } from "@/components/ui/layer-stack";
export function PlatformSection() {
return (
<section style={{ maxWidth: 640 }}>
<LayerStack
items={[
{ title: "Triggered by events", hint: "Webhooks", icon: "bolt" },
{ title: "Grounded in your data", hint: "Context", icon: "database" },
{ title: "Connected to your apps", hint: "APIs", icon: "plug" },
{ title: "Works with any model", hint: "Routing", icon: "spark" },
{ title: "Traced at every step", hint: "Logs", icon: "pulse" },
]}
/>
</section>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| items | LayerStackItem[] | five sample layers | Up to five entries, top layer first – { title, hint?, icon? } with icon one of bolt, database, plug, spark, pulse |
| defaultIndex | number | 0 | Entry to start on |
| interval | number | 2600 | Time per entry while it plays on its own, in ms |
| onChange | (index: number) => void | Called when the user picks an entry | |
| className | string | Extra class on the root, e.g. for width or margins |
Transparent background, so it sits on any light or dark surface
Keeps a 3 : 2 aspect ratio and scales to the width of its container – text and layers are sized in container units
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"
@import "tailwindcss"; in your main CSS file.