Primitive 02 / Code

Code block

Bash fitment-check + parts-API JSON snippets with deterministic per-token highlighting, four themes, copy-to-clipboard, and toggleable line numbers.

Production answer

Code block is a reusable Oak Flats Muffler Men UI primitive with documented states, accessibility expectations, theme behavior, and implementation evidence.

Primary CTAReview Code block states
Generative search brief

Code block: Bash fitment-check + parts-API JSON snippets with deterministic per-token highlighting, four themes, copy-to-clipboard, and toggleable line numbers.

Live primitive · 3 states
Render mode · preview
fitment-check.sh
#!/usr/bin/env bash
# Fitment lookup against the Mufflermen parts API
set -euo pipefail

REGO="${1:-DRL07X}"
VEHICLE=$(curl -fsS "https://parts.mufflermen.au/lookup?rego=$REGO")
echo "$VEHICLE" | jq '.exhaust.options[] | { brand, sku, fits }'

# Hot tip: pair this with the dyno script before quoting
Edit mode · language + theme
fitment-check.sh
#!/usr/bin/env bash
# Fitment lookup against the Mufflermen parts API
set -euo pipefail

REGO="${1:-DRL07X}"
VEHICLE=$(curl -fsS "https://parts.mufflermen.au/lookup?rego=$REGO")
echo "$VEHICLE" | jq '.exhaust.options[] | { brand, sku, fits }'

# Hot tip: pair this with the dyno script before quoting
Error state