Divider
One recipe, two bindings — rendered side by side from the same source the package ships.
React
Above the line
LeftRight
import { Divider } from "../react/index.js";
export default function DividerDemo() {
return (
<div className="flex flex-col gap-4">
<p className="text-ink-secondary">Above the line</p>
<Divider />
<div className="flex h-10 items-stretch gap-4">
<span className="self-center text-ink-secondary">Left</span>
<Divider orientation="vertical" />
<span className="self-center text-ink-secondary">Right</span>
</div>
</div>
);
}
Svelte
Above the line
Left Right
<script lang="ts">
import { Divider } from "../svelte/index.js";
</script>
<div class="flex flex-col gap-4">
<p class="text-ink-secondary">Above the line</p>
<Divider />
<div class="flex h-10 items-stretch gap-4">
<span class="self-center text-ink-secondary">Left</span>
<Divider orientation="vertical" />
<span class="self-center text-ink-secondary">Right</span>
</div>
</div>