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.

eds-trl-badge Open in Storybook

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 light theme).
  • 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

PropertyAttributeDescriptionTypeDefault
assessedassessedAssessment month, e.g. “2026-06”.stringundefined
hrefhrefOptional link (methodology or service page).stringundefined
labellabelLeft-segment / leading label: who assessed it (EBRAINS Ready, an organisation, Self-assessed).string'EBRAINS TRL'
level (required)levelTRL level, 1–9.numberundefined
markmarkDraw 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.booleantrue
methodologymethodologyMethodology version, e.g. “v8.2”.stringundefined
separatorseparatorBetween the label and the level in the outline variant. '' reads “TRL 8” — for dense tables, where the dot is noise.string'·'
sizesizeRendered height in px. Scales the whole badge crisply (viewBox is fixed).numberundefined
themethemeColour theme for the tone / outline / scale variants."dark" | "light"'dark'
valuevalueValue text, e.g. TRL 7. Defaults to the bare level.stringundefined
variantvariant’tone’ | ‘full’ | ‘pill’ | ‘outline’ | ‘scale’."full" | "outline" | "pill" | "scale" | "tone"'tone'

Built with StencilJS