Panel
One recipe, two bindings — rendered side by side from the same source the package ships.
React
flat
Sharp boundary, floating feel.
raised
Sharp boundary, floating feel.
glass
Sharp boundary, floating feel.
import { Panel } from "../react/index.js";
export default function PanelDemo() {
return (
<div className="grid gap-4 sm:grid-cols-3">
{(["flat", "raised", "glass"] as const).map((tier) => (
<Panel key={tier} tier={tier}>
<p className="font-medium">{tier}</p>
<p className="text-sm text-ink-secondary">
Sharp boundary, floating feel.
</p>
</Panel>
))}
</div>
);
}
Svelte
flat
Sharp boundary, floating feel.
raised
Sharp boundary, floating feel.
glass
Sharp boundary, floating feel.
<script lang="ts">
import { Panel } from "../svelte/index.js";
const tiers = ["flat", "raised", "glass"] as const;
</script>
<div class="grid gap-4 sm:grid-cols-3">
{#each tiers as tier (tier)}
<Panel {tier}>
<p class="font-medium">{tier}</p>
<p class="text-sm text-ink-secondary">Sharp boundary, floating feel.</p>
</Panel>
{/each}
</div>