Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Annotated Seal Awards Block for React

A 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.

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

An annotated seal for React with Base UI. A framed figure draws one test-lab seal in SVG: a scalloped edge, two rings with the lab and the programme set round them on a text path, a grade in the middle, the year on a ribbon and a serial under it. Four numbered chips on hairline leaders point at the ring, the grade, the year and the serial, and an ordered list beside the seal says the same four things in words, with the facts counted from the test run: the grade follows from the cases passed and the seal's last day from the test day. On a phone the leaders and chips go and the seal stands alone above the list. The page's rails and top rule come from the Guides spine. Vellumby, the Harborcroft Guild, the product and the serial are made up for the example.

FAQ

How do I change what the seal says?

The test run sits at the top of the file: CASES, PASSED, TESTED_ON, VALID_MONTHS and SERIAL. The grade comes from gradeOf (A at 95% or more of cases passed, B at 85%, C at 70%, otherwise D), the ribbon year from TESTED_ON, and the last day from the test day plus VALID_MONTHS. The list text in LEADERS reads those values, so the seal, the list and the dates always agree.

How is the text set round the ring?

RING_TEXT runs along a circle drawn in the same SVG (an SVG text path) and is stretched to fill it, so a longer or shorter name still closes the ring. The path has a fixed id, vellumby-seal-ring; if you put two seals on one page, give each its own id.

Can I move a leader?

Each entry in LEADERS has the dot on the seal (dotX, dotY) and the chip's centre (chipX, chipY), both in a 480 by 300 box that holds the seal in its middle 300 by 300. The line and the chip are both drawn from those numbers, so changing one entry moves both ends.

What do screen readers get?

The whole drawing, the ring text, the grade, the ribbon and the serial overlay are hidden from assistive technology, and the numbered list carries everything they show. The list is named "How to read the seal", each mark is a heading with a sentence, and the test and last days are real time elements.

Is this a real seal?

No. The lab, the guild and the serial are made up, and the seal is drawn by the block, not copied from any testing body. If you show a real seal, use its official artwork only if its rules allow it, and keep the explanation in text.

How does it fit on a phone?

Below md the seal stands alone at 256 pixels with its grade, ribbon year and serial, the chips and leaders are hidden, and the list sits under it with its own numbers. From md the figure widens and the leaders appear; from lg the figure moves to the end beside the list. In a right-to-left layout the drawing stays as drawn, because a seal is symmetric artwork.

  • 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.

  • Pro

    Certificate Awards

    One featured award

    A 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

    Verification Lookup Awards

    Filters and search

    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.

  • Pro

    A glass trophy cabinet drawn in SVG with two shelves, eight trophies of different silhouettes and an engraved plaque under each, with the shelves, awards and programmes counted from the list.

  • Pro

    Star Grade Matrix Awards

    Rankings and scores

    A grading-scale matrix of five categories by one to five stars, with a tooltip on each column header, the grade a hotel holds in each category as an outlined cell with filled stars, and who holds it and when.

  • Pro

    A compliance list for a vendor-risk tool grouped by status, In force and In progress, each row a generic programme with its scope, last audit and next step, with a ghost link to request the report.