# Neoconstruct Marker

Neoconstruct marker symbols in a ruler-and-compass style: wedge, slash, disc, ring, plus, square, bar and star, plus a zero-padded numeral. Comes with the Neoconstruct theme.

Component · Graphics · https://01orbital.dev/docs/components/neoconstruct-marker

## Installation

```bash
npx shadcn@latest add @01orbital/neoconstruct-marker
```

## Usage

```tsx
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>
  )
}
```

This example installs with everything it uses:

```bash
npx shadcn@latest add @01orbital/neoconstruct-marker-demo
```

## 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 | Default | Description |
| --- | --- | --- | --- |
| `variant?` | `MarkerProp` | `"wedge"` | Which mark to draw; "none" renders nothing. Defaults to "wedge". |

### 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 | Default | Description |
| --- | --- | --- | --- |
| `n` | `number` |  | The number to show, padded to two digits. |

## Dependencies

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

- `font-unbounded`

npm: `cn`

## Examples

- **Neoconstruct Marker Sowing List** (`@01orbital/neoconstruct-marker-sowing-list`): Planting list example showing the Neoconstruct Marker: each crop gets a marker and a numeral, with sowing instructions in disclosures.
- **Numeral Masthead Marker** (`@01orbital/neoconstruct-marker-numeral-masthead`): Numeral Masthead Marker: an example of neoconstruct-marker.
- **Neoconstruct Marker Workshop Sign** (`@01orbital/neoconstruct-marker-workshop-sign`): Workshop sign example showing the Neoconstruct Marker: a marker target, a MarkerNumeral and an arrow on a mint sign.

## Used in blocks

- [Wedge Orb Full Poster Hero](https://01orbital.dev/docs/blocks/poster-hero-04)
