eds-trl-badge
Explore the Interactive Component
Use the playground below to experiment with the component. Click the button to view the full Storybook deployment for additional examples and configurations.
See It in Use with Code
level (1–9) is required. variant is one of tone (default), full, pill, outline or scale, and theme is dark (default) or light.
Plain HTML
In React
Overview
EdsTrlBadge — public EBRAINS TRL badge, aligned with the EBRAINS visual
system (Black #07140D, Green #00FF9D, Dark Green #00C87B, Grey
#7A7B7A, IBM Plex Mono) and using the official EBRAINS sphere mark.
Renders a self-contained inline <svg> (same markup the server-side
badge.svg endpoint emits), so it embeds anywhere and stays crisp.
Variants:
tone— CI-style label + value pill (dark or lighttheme).full— single bar with the full string.pill— compact rounded “TRL 7”.outline— thin border, transparent fill, mono caps (dark or light).scale— nine readiness pips showing position on the 1–9 scale.
The value/pip colour encodes maturity within the brand palette: TRL 7–9 → green, 4–6 → dark green, 1–3 → grey.
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
assessed | assessed | Assessment month, e.g. “2026-06”. | string | undefined |
href | href | Optional link (methodology or service page). | string | undefined |
label | label | Left-segment / leading label: who assessed it (EBRAINS Ready, an organisation, Self-assessed). | string | 'EBRAINS TRL' |
level (required) | level | TRL level, 1–9. | number | undefined |
mark | mark | Draw the EBRAINS sphere mark. The public badge draws it only for the official EBRAINS assessment, so a self-assessed number does not carry EBRAINS’ mark. | boolean | true |
methodology | methodology | Methodology version, e.g. “v8.2”. | string | undefined |
separator | separator | Between the label and the level in the outline variant. '' reads “TRL 8” — for dense tables, where the dot is noise. | string | '·' |
size | size | Rendered height in px. Scales the whole badge crisply (viewBox is fixed). | number | undefined |
theme | theme | Colour theme for the tone / outline / scale variants. | "dark" | "light" | 'dark' |
value | value | Value text, e.g. TRL 7. Defaults to the bare level. | string | undefined |
variant | variant | ’tone’ | ‘full’ | ‘pill’ | ‘outline’ | ‘scale’. | "full" | "outline" | "pill" | "scale" | "tone" | 'tone' |
Built with StencilJS