Link Provider@astryxdesign/core v0.5.2 · LinkProvider
Usage
Wraps your app to replace the default <a> tag with a framework-specific link component (e.g. Next.js Link) for client-side routing across all Astryx components.
tsimport {LinkProvider} from '@astryxdesign/core/Link'
Props
| Prop | Type | Description |
|---|---|---|
componentrequired | LinkComponentType | Link component to use for all link elements in the subtree (e.g. Next.js Link). |
childrenrequired | ReactNode | Content to render with the link provider. |
Examples
Common configurations, variations, and states.Link Provider — Custom Link Component
Routes every Astryx link through a custom component that intercepts the click, the hook frameworks like Next.js use for client-side navigation. Click the link to see the custom handler fire instead of a full-page load.
Use with shadcn
Already using the shadcn registry workflow? Install the real Astryx package and a local public re-export. Component implementation source stays in Astryx. How compatibility works.
This install URL expires with the draft preview.bashnpx shadcn@latest add https://astryx-pxujcw3w9-fbopensource.vercel.app/r/components/link-provider.json