Import

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

Usage

<PageHeader title="Badge" badge="Design System" description="...">
  <FigmaLink slot="action" component="badge" />
</PageHeader>

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

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