Primitive 06 / Code sample tabs

Code sample tabs

A tab strip across cURL, JavaScript, Python, and PHP, sitting above a reusable CodeBlock with copy-to-clipboard. Falls back gracefully when only a subset of languages is available.

Production answer

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

Primary CTAReview Code sample tabs states
Generative search brief

Code sample tabs: A tab strip across cURL, JavaScript, Python, and PHP, sitting above a reusable CodeBlock with copy-to-clipboard. Falls back gracefully when only a subset of languages is available.

GET /v1/parts
BASHexample.bash
curl -X GET \  "https://api.muffler.men/v1/parts" \  -H "Authorization: Bearer mfm_live_sk_…7af2" \  -H "Accept: application/json"
POST /v1/quotes
BASHexample.bash
curl -X POST \  "https://api.muffler.men/v1/quotes" \  -H "Authorization: Bearer mfm_live_sk_…7af2" \  -H "Accept: application/json" \  -H "Content-Type: application/json" \  -d '{ "registration": "OAK-194", "service": "muffler_swap" }'
BASHexample.bash
curl -X GET \  "https://api.muffler.men/v1/parts" \  -H "Authorization: Bearer mfm_live_sk_…7af2" \  -H "Accept: application/json"