Import

import FigmaLink from '../../components/utility/FigmaLink.astro';

Usage

<!-- Single-platform page: one pill at the top of content -->
<FigmaLink component="checkbox" />

<!-- Tabbed page: one pill per tab section, scoped by platform -->
<div id="tab-suite" class="tab-section">
  <FigmaLink component="badge" platform="suite" />
  ...
</div>
<div id="tab-eshop" class="tab-section">
  <FigmaLink component="badge" platform="eshop" />
  ...
</div>

Pass the component slug (the demo page file name, e.g. badge, card-input). The component looks the URLs up in src/lib/figmaLinks.ts. On a tabbed page add platform so each tab links to its own platform. To get a URL: open the component in Figma, right-click → Copy link to selection, and paste it into the registry.

Props

PropTypeRequiredDescription
componentstringNoSlug key into the figmaLinks registry (e.g. badge).
suitestringNoExplicit Suite URL — overrides the registry lookup.
eshopstringNoExplicit eShop URL — overrides the registry lookup.
platform"suite" | "eshop"NoRestrict to one platform — renders a single pill. Use inside a tab section.

Preview — single platform

One documented platform → a single "View in Figma" pill.

Preview — both platforms

Both platforms → one labelled pill each (Suite, eShop).

Page tokens