For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
/
275
Sponsor

Divider

A solid or dashed rule with an optional centered label.

Customize

Installation

$ pnpm dlx shadcn@latest add @ogimagecn/divider

Usage

import { Divider } from "@/components/og/divider";
<Divider
  color="#a78bfa"
  label="New collection"
  thickness={2}
  variant="dashed"
/>

Omit label for a single full-width rule. Use thickness to set the line width in pixels.

API Reference

PropTypeDefault
variant"solid" | "dashed""solid"
colorstring"#71717a"
labelstring—
thicknessnumber1