Text link
Read the terms first.
npx shadcn add @klarhimmel/text-linkCopy for AIDetailsAbout, usage, props and more
An inline link with an underline that stays visible, and a focus ring.
When to use
Use for
Links inside running text.
Not for
Standalone calls to action. Use Button link.
Pairs with
Prose, captions, footnotes.
Preview
Cancel for free until 48 hours before arrival. Read the booking terms or ask the front desk if something is unclear.
Import
Import
- Files
- text-link.tsx, in components/klarhimmel/ui/. With it: button, theme, utils.
- Render in
- Render it inside <Theme>, once near the root of your app. Tokens and fonts are scoped to it, so outside it the component is unstyled.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
href | string | - | Destination, passed through safeHref. |
className | string | - | Extra classes, merged after the component's own. |