eds-logo

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-logo Open in Storybook

See It in Use with Code

Check out the practical implementations of component.

The variant prop is set through the type attribute (positive for light backgrounds, negative for dark ones). product adds an optional product name beside the mark. The SVG has no intrinsic width, so place the logo inside a parent with a set width.

Plain HTML

In React and Vue

Overview

EdsLogo renders the clickable EBRAINS brand mark (inline SVG).

Props:

  • variant (attribute type): 'positive' (dark logo for light backgrounds) or 'negative' (light logo for dark backgrounds).

  • href: where the logo links to (defaults to /). The logo is the click-to-home affordance in eds-header, eds-fullscreen-menu and the eds-form brand hero.

  • product: optional product name set beside the mark as a lockup (“EBRAINS | Ready”). Empty keeps the plain EBRAINS mark.

Clicks emit an analytics event (category/tag/name/action).

NOTE: the SVG has a viewBox but no intrinsic width, so the host needs a sized block parent to render (e.g. eds-header wraps it in a fixed-width container).

Properties

PropertyAttributeDescriptionTypeDefault
hrefhrefThe URL that the logo should link to. When clicked, the user will be navigated to this URL. Defaults to the root path (’/’).string'/'
productproductOptional product name shown beside the EBRAINS mark, after a thin rule (e.g. “Ready” → “EBRAINS | Ready”). Leave empty for the plain mark.stringundefined
productShortproduct-shortOptional shorter product name for phones and iPads (below 1024px), for a product name too long to sit beside the mark on a small screen (e.g. product “Handbook.DevOps”, productShort “DevOps”). Falls back to product.stringundefined
varianttypeThe visual variant of the logo. 'positive' for dark logo on light backgrounds, 'negative' for light logo on dark backgrounds."negative" | "positive"'positive'

Dependencies

Used by

Graph

graph TD;
  eds-form --> eds-logo
  eds-fullscreen-menu --> eds-logo
  eds-header --> eds-logo
  eds-splash-screen --> eds-logo
  logo-space --> eds-logo
  logo-variations-horizontal --> eds-logo
  logo-variations-vertical --> eds-logo
  style eds-logo fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS