shadcn.io is not affiliated with official shadcn/ui
Verification Lookup Awards Block for React
A certificate number lookup with a labelled field and a Shine Button, sample numbers as chips and a live result panel that reads Valid, Expired or Not found against four typed records.
Installation
Overview
A certificate lookup for React with Base UI. A split on a divider: at the start the header, a labelled field for a certificate number with a Shine Button "Verify" inside it, a line saying what it really checks, and sample numbers as chips. At the end a result panel, a polite live region, reads the record for the number: Valid, Expired or Not found, each with a dot, an icon and the word, then the holder, award, programme and days. Four typed records back it, a number is valid or expired by comparing its last day with a fixed day, and any other number is not found. The panel holds its height for every outcome, so nothing moves. The page's rails and top rule come from the Guides spine. Octavian, the Russetwick Awards, the holders and the numbers are made up, and nothing leaves the page.
FAQ
How do I add or change the records?
Edit CREDENTIALS at the top of the file: each has a number, holder, award, programme, the day issued and the last day. The sample chips are made from the list, and the lookup matches a typed number after removing spaces and capitalising it, so lower case and stray spaces still match.
How are Valid and Expired decided?
By comparing the record's last day with AS_OF, a fixed day. On or after it the record is Valid and shows the days to go; before it the record is Expired and shows how many days ago it ended. A number that is in no record is Not found. Set AS_OF yourself, or use your own check, in a real page.
Does it call a server?
No. The line under the field says so: it checks this page's four sample records and nothing is sent. To make it real, replace lookup with a request to your register and keep the three outcomes and the reserved-height panel.
How are results announced?
The result panel is a polite live region that is on the page from load, so a screen reader hears the new outcome when you press Verify or pick a chip; focus stays on the control you used. An empty submit shows a message under the field and moves focus back to it. The status dot is a drawing; the word beside it says the state.
Related
- Pro
Certificate Awards
One featured awardA formal certificate of award as HTML with a double hairline frame, a drawn laurel, the recipient, a citation, two signature strokes and a seal, beside a details list and an outline Verify link.
- Pro
Credential Badge Kit Awards
Badges and sealsA 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.
- Pro
Annotated Seal Awards
Badges and sealsA large drawn seal with a grade, a year ribbon, a serial and the lab and programme set round it on a text path, with four numbered hairline leaders to an ordered list that explains each mark.
- Pro
Government Register Awards
Cards and gridsThree public-sector register entries as cells apart, each with a drawn crest, a reference with a Copy button, lot, tier, last day and a standing worked out from a fixed day, plus an outline link to the official register.
- Pro
Command Search Awards
Filters and searchAn inline command window that searches twelve awards and six programmes by name, programme, category or year, with matches marked and a live result count.
- Pro
Audit Table Footer
Trust and complianceA footer for a backup vault with an audit table in a framed figure (the programme, its scope, how often it is audited and a link to request the report) beneath the brand and three link columns.