LinkProvider
Sets the link component for every Prism link below it (LinkButton, Card href, SideNav, Tabs).
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
Sets the link component for every Prism link below it (LinkButton, Card href, SideNav, Tabs).
Accessibility
Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.
Install and import
npx shadcn@latest add @prism/link-provider
import { LinkProvider } from '@/components/prism/LinkProvider';
In a no-build prototype, read it from the bundle instead: const { LinkProvider } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
component | LinkComponent | Yes | The component Prism links render, e.g. Link from "next/link". |
children | React.ReactNode | — |