# Text link

- **[Atoms](/components/)**

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

text-link.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { TextLink } from '@/components/klarhimmel/ui/text-link';

export default function Example() {
  return (
    <Theme theme="brand">
      <p>Read the <TextLink href="/terms">terms</TextLink> first.</p>
    </Theme>
  );
}
```

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/text-link
  ```
- **Import**

  ```
  import { TextLink } from '@/components/klarhimmel/ui/text-link';
  ```

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

- **href**: Destination, passed through safeHref.
- **className**: Extra classes, merged after the component's own.

## Accessibility

- Enter · Follows the link

[Accessibility](/get-started/accessibility)

[Previous](/components/button)

[Next](/components/copy-button)
