ComponentsGraphics

Neoconstruct Marker

Neoconstruct's ruler-and-compass marks: wedge, slash, disc, ring, plus, square, bar and star, plus a zero-padded numeral. Ships in the Neoconstruct theme.

Open the preview in a new tab

The source comes with full access.

One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.

Installation

pnpm dlx shadcn add @01orbital/neoconstruct-marker
npx shadcn add @01orbital/neoconstruct-marker
yarn shadcn add @01orbital/neoconstruct-marker
bunx --bun shadcn add @01orbital/neoconstruct-marker

Part of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).

It lands at components/graphics/neoconstruct-marker.tsx, as source you own and edit.

Usage

import {
  Marker,
  MarkerNumeral,
  type MarkerVariant,
} from "@/components/graphics/neoconstruct-marker"

const variants = [
  "wedge",
  "band",
  "disc",
  "target",
  "registration",
  "arrow",
  "square",
  "bar",
] as const satisfies readonly MarkerVariant[]

export default function MarkerDemo() {
  return (
    <div className="flex flex-col gap-8">
      <div className="flex flex-wrap justify-center gap-6">
        {variants.map((variant) => (
          <div key={variant} className="flex w-16 flex-col items-center gap-2">
            <Marker variant={variant} className="size-8 text-main-text" />
            <span className="font-heading text-xs tracking-wider uppercase">
              {variant}
            </span>
          </div>
        ))}
      </div>
      {/* Wraps on a phone, so the third step never runs off the edge. */}
      <div className="flex flex-wrap items-end justify-center gap-x-6 gap-y-4">
        {[1, 2, 3].map((n) => (
          <div key={n} className="flex items-end gap-2">
            <MarkerNumeral n={n} className="text-5xl text-main-text" />
            <span className="font-heading text-sm tracking-wider uppercase">
              Step
            </span>
          </div>
        ))}
      </div>
    </div>
  )
}

Anatomy

Neoconstruct Marker is built from 2 parts. In the example they nest like this:

Marker
MarkerNumeral
  • Marker: A small Constructivist mark for buttons, badges and list items: a wedge, band, disc, target, registration mark, arrow, square or bar. It draws in the text color at size-4 and is hidden from assistive tech.
  • MarkerNumeral: A zero-padded step or issue number in the heading font: 1 shows as "01". It has no size of its own, so set one with className. It is hidden from assistive tech, so pair it with text that names the step.

API reference

Marker

A small Constructivist mark for buttons, badges and list items: a wedge, band, disc, target, registration mark, arrow, square or bar. It draws in the text color at size-4 and is hidden from assistive tech.

Prop

Type

It also accepts the HTML attributes of the element it renders.

MarkerNumeral

A zero-padded step or issue number in the heading font: 1 shows as "01". It has no size of its own, so set one with className. It is hidden from assistive tech, so pair it with text that names the step.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs them for you.

Registry pieces it installs with it:

  • font-unbounded

On this page