Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Mechanic Certification Runway Profile Block for React

A mechanic profile as a certification runway: six of eight tests held toward Master technician, each as a ruled row with a bar from issue to expiry on one axis, the months to go in words, and a switch that dims whatever is not due within 12 months.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

Show how long a technician's credentials last, with this mechanic profile for React with Base UI. A compact header holds the title and a Switch that reads Due within 12 months, and the hairline frame under it opens on the technician: initials, name, role and place. A band tracks the Master technician title: a row of eight segments that fill as tests are held, the count in words ("6 of 8 held") and the two tests still to take as outline Badges. The runway is a ruled list with a row per test: its code and name, the day it was issued and the day it runs out, a bar between them on one ten-year axis with a mark for today, and the time to go in words. Turn the switch on and every test that is not due within 12 months dims, so the few that are stand out, and the status line says how many. Every figure is worked out from typed days, never the clock, and the board and its tests are invented. It's built from Switch, Badge, Avatar and Guides, with a CSS entrance only. For an auto-repair directory, a trades profile or any person whose credentials expire.

FAQ

How do I fill it with my own tests?

Edit TESTS. Each has a code, a name and the ISO days it was issued and expires; leave both empty for a test that is not held. AS_OF is the day the page treats as today, and the axis runs from five years before it to five years after, so every bar sits on the same scale and the mark for today is always in the middle. The count, the tests still to take, the months to go and the due test count are all worked out from those days, so nothing is typed twice.

What does the switch do?

It dims, it does not hide. A test is due when it runs out within 365 days of AS_OF; with the switch on, every other test, including the ones not yet taken, turns to quiet text and a lighter bar while the due ones keep full weight, and the status line says how many are due and that the rest are dimmed. Because no row leaves, the panel keeps its height and nothing jumps. Change DUE_WITHIN to change the window.

How do I read the bars?

Each bar runs from the day a test was passed to the day it runs out. The lighter part is time already used and the solid part is time to go, split at the mark for today, so a short solid bar means the test is close to running out. The bars are decorative: the dates and the months to go are written in the row, so nothing depends on seeing them.

Is anything verified?

No. The Vehicle Service Board, the tests and the technician are invented, and nothing is checked against a real register. The switch only changes how the list is drawn in this page. To make it real, load the tests from your own records and say where each one was checked.

Is it accessible?

The switch is named, the tests are a list, and each row reads as the code, the name, the two dates and the time to go in words. The status line is a polite live region present from the start, so turning the switch on says how many tests are due. Dimmed rows stay readable at full contrast, and nothing depends on colour. In a right-to-left layout the dates and counts keep their order, and the bars stay in time order.

How does it look on a phone?

Each row becomes two lines: the test and the time to go on the first, the bar full width under them. The year ruler above the bars is hidden below the small breakpoint, where the dates in each row say the same. The switch drops under the sentence in the header.

  • Pro

    Pilot Flight Log Profile

    Credentials and proof

    A pilot profile as a logbook: eight flights in a sortable table with a totals row, an aircraft menu that narrows the book, certificates as badges and one stacked bar of the hours by category with a legend of hours and shares.

  • Pro

    A pharmacist profile as a licence wallet: a menu of the three states where she is licensed, a card with the number masked behind Show number and a copy button, issue and expiry dates, a status word and a bar of the days to go.

  • Pro

    An electrician profile as a flat-rate job estimate: a menu of services in three category tabs with an Add toggle each, and a start cell that works out the subtotal, call-out fee, an emergency surcharge switch, the total and the time on site.

  • Pro

    A plumber profile with reviews by service area: a drawn greyscale map of six zones in three distance rings, each a button with its average rating, and for the chosen zone its reply time, call-out fee and three reviews with stars, the job and the plumber's reply.

  • Pro

    Credentials Table Team

    Skills and expertise

    Nine credentials held by the people of a compliance-software company in a ruled table, each with its holder, certification, fictional issuing body and the month it is valid until, under a category filter that moves the picked category to the front and dims the rest.

  • Pro

    A credential badge drawn at 96, 64 and 32 pixels in a framed figure, beside an HTML and Markdown embed snippet in tabs with a Copy button and a Verified line that shows the day the credential is valid until.