Content

Doc parts

The pieces a long-form page is written in: DocLabel, Section, DisplayH2, Prose, Em and Strong. No entrance built in, so they never pull in motion.

view .md
Preview
about

Engineer, mostly.

I build design systems and ship them as copy-paste code.

Installation
terminal
bash
npx @entrepta/cli@latest add doc-parts

// Resolves dependencies, copies the source, and installs npm packages automatically.

Usage
doc-parts.tsx
tsx
import { DisplayH2, DocLabel, Em, Prose, Section, Strong } from "@/components/entrepta/doc-parts"

<Section id="about" variant="first">
  <DocLabel>about</DocLabel>
  <DisplayH2>Engineer, <em>mostly</em>.</DisplayH2>
  <Prose>
    I build <Strong>design systems</Strong> and ship them as <Em>copy-paste</Em> code.
  </Prose>
</Section>
Props
PropTypeDefaultDescription
level"#" | "##""#"Markdown prefix (DocLabel)
variant"default" | "first""default"The first section has no rule above it (Section)
Active theme: entrepta, dark mode.