Skip to content
GitHub
Browse the docs

Building blocks

Text link

TextLink

A link in Booki's look, with an optional icon. Navigation, not an agent action.

The person sees

Loading preview…

Install
booki_version=$(npm view @booki-aui/react@latest version) &&
ui_sdk_version=$(npm view "@booki-aui/react@$booki_version" peerDependencies.@ui-sdk/core) &&
pnpm add --save-exact "@booki-aui/core@$booki_version" "@booki-aui/react@$booki_version" "@booki-aui/styles@$booki_version" \
  "@ui-sdk/core@$ui_sdk_version" "@ui-sdk/react@$ui_sdk_version"

Usage example

JSX
import { TextLink } from "@booki-aui/react"

<TextLink href="/docs/close" icon="docs">Month-end guide</TextLink>

// Your router's link, with the same look:
<TextLink asChild><Link to="/docs/close">Month-end guide</Link></TextLink>

A link is navigation, so the agent's snapshot does not list it. The underline firms up on hover.

Import from @booki-aui/react. For Booki's default styling, add import "@booki-aui/styles".