wunderui.com/components/tabs
Arrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence.
Cookie settings
Your license after an unlock and your light or dark mode are stored because the site needs them. Google Analytics is optional: it only runs if you accept, and you can change your choice at any time under Cookie settings in the footer. Privacy policy
One ranked result of a web-search tool call: the source, how well it matched, a link to the page and a snippet of its text.
wunderui.com/components/tabs
94% matchArrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence.
wunderui.com/components/tabs
Arrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence.
wunderui.com/components/tabs
94% matchArrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence.
wunderui.com/components/tabs
Arrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence.
Search Result Card comes with WunderUI Core and Pro, in the package from your plan. See the plans.
Then import what you need:
import {
SearchResultCard,
SearchResult,
SearchResultRow,
} from "@wunderui/react"Then use it:
import { SearchResultCard } from "@wunderui/react"
export function Result() {
return (
<SearchResultCard
rank={1}
title="Keyboard interaction for tabs"
url="https://wunderui.com/components/tabs"
snippet="Arrow keys move focus between tabs."
relevance={0.94}
/>
)
}Expected result: You see a card with the number 1, the link icon with wunderui.com and /components/tabs, a 94% match badge, the title as a link and the snippet below. The link opens in a new tab.
The source line shows the host without www and the URL path, so people can judge the page before opening it. The query string is left out, and only http(s) and relative URLs become links.
wunderui.com/components/tabs
wunderui.com
example.org/guides/accessibility/keyboard/composite-widgets/roving-focus-and-active-descendant
/docs/installation
javascript:void(0)
The snippet is any content. Highlight the words of the query with a mark element, or clamp the text to a few lines; the card never shortens it.
wunderui.com/components/tabs
Arrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence.
wunderui.com/components/tabs
Arrow keys move focus between tabs. Home and End jump to the first and last tab.
wunderui.com/components/tabs
Arrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence. The tab panel follows the selected tab, and a tab list with many tabs scrolls instead of wrapping.
wunderui.com/components/tabs
The rank and the match badge are optional. Pass a relevance score only when the search tool returns one.
wunderui.com/components/tabs
94% matchArrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence.
wunderui.com/components/tabs
Arrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence.
wunderui.com/components/tabs
94% matchArrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence.
wunderui.com/components/tabs
Arrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence.
A search that is running, empty or failed has no result to show, so these are not card states. Build them from Skeleton, Empty State and Alert where the list will be.
wunderui.com/components/tabs
94% matchArrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence.
example.org/guides/roving-focus
88% matchGive tabindex 0 to the active item and -1 to the rest, then move it with the arrow keys.
No results for “tabs keyboard v3”
Check the spelling or search for a broader term.
The search did not finish
The search tool timed out after 10 s. No results were returned.
SearchResultRow is one hit in a result list or a command palette: an icon tile, a title, a two-line excerpt, where the hit lives and a chevron. With href the row is a link; without it a button that runs onSelect, so Enter and Space both work and nothing jumps to #. SearchResultCard stays the ranked result of an agent's web search; SearchResultRow replaces SearchResult.
With onSelect the whole card is one button, so Enter and Space work and hover and focus are visible. The title is then plain text, because a link inside a button is not valid. cited adds a "Cited" badge, so the state is not told by colour alone.
The only control is the title link, a native anchor, so the browser handles focus and activation.
How the card reads a URL and a score, what it links to and what it leaves to the list around it.
The figure shows a result with every optional part. The link icon belongs to the source line and has no number of its own.
wunderui.com/components/tabs
94% matchArrow keys move focus between tabs. Home and End jump to the first and last tab. Only the selected tab is in the tab sequence.
An article with a 1 px border, 16 px radius and 16 px padding. A selected result gets the primary border and the subtle fill.
A 22 px circle with the position of the result, shown when a rank is set. It sits on the subtle fill, or on the card colour when selected.
A link icon, the host without www. in medium text and the path in tertiary text. The query string and the hash are left out.
A light Badge reading 94% match, shown when a relevance is set. Grey normally, indigo on a selected result.
The title in semibold link colour. It opens in a new tab, and only for http(s) URLs and relative paths.
13 px secondary text under the title, any content you pass. It is not shortened, and an empty snippet is not rendered.
One search hit as a row, for a result list or a command palette: a 40 px icon tile in the indigo tint, a title, a two-line excerpt, where the hit lives and a chevron. With it is a link, without it a button. It replaces SearchResult.
Pass the full URL with its scheme, so the card can show host and path and people can judge the source before opening it. A relative path of an internal search works too.
Put the cards in a list with one item per card. The card is an article without a name of its own.
Mark the cited result as selected and say it in words too, for example The answer cites result 2 in a status line. The card sets no ARIA state for selection.
Highlight the words of the query with mark and keep the snippet as text. It comes from the web, so never pass it as HTML.
Show a running, empty or failed search in the list itself, with a Skeleton, an Empty State or an Alert, and announce it in a status line.
Don't invent a relevance score. Pass one only when the tool provides it, or the badge claims a precision that does not exist.
Don't pass 1 to mean 1%, because values up to 1 are fractions and 1 reads 100% match. Use 0.01 for one percent.
Don't add a favicon from a third-party service. It tells that service what the agent searched for, so the card leaves it out on purpose.
SearchResultCard is a plain component, so the table lists every prop. It passes no other props on to the article. SearchResultRow renders a link or a button and takes only the props listed under it.
An article with a 1 px border, 16 px radius and 16 px padding. A selected result gets the primary border and the subtle fill.
| Prop | Type | Default | Description |
|---|---|---|---|
| title required | ReactNode | — | The text of the link. Any content; it wraps and is never shortened. |
| url required | string | — | The address of the page. The card shows its host and path and links to it when it is http(s) or a relative path. Any other scheme is shown as plain text. |
| rank | number | — | The position of the result, shown in a circle before the source line. Leave it out for an unordered list. |
| snippet | ReactNode | — | The text under the title. Any content, so it can hold for the words of the query. An empty value renders nothing. |
| relevance | number | — | The match score. 0 to 1 is a fraction and above 1 a percentage, rounded and written as . Hidden when not set. |
| selected | boolean | false | Marks the result the agent cited: primary border, subtle fill, indigo badge and . It sets no ARIA state, so say it in text as well. Default . |
| cited | boolean | false | The agent used this result in its answer: shows a "Cited" badge. |
| onSelect | () => void | — | Makes the whole card a button, for example to open the source in a side panel. The title is then text, not a link. |
| className | string | — | Extra classes for the card, for example a maximum width. It is by default. |
One search hit as a row, for a result list or a command palette: a 40 px icon tile in the indigo tint, a title, a two-line excerpt, where the hit lives and a chevron. With it is a link, without it a button. It replaces SearchResult.
| Prop | Type | Default | Description |
|---|---|---|---|
| title required | ReactNode | — | The name of the hit. Required. |
| description | ReactNode | — | A short excerpt under the title, cut after two lines. |
| meta | ReactNode | — | Where the hit lives and when it changed, in 11 px tertiary text, such as . |
| icon | ReactNode | — | The icon in the tile. A document icon when left out. |
| href | string | — | Makes the row a link. Without it the row is a button, so nothing jumps to . |
| onSelect | () => void | — | Called when the row is pressed, also on a link. |
| className | string | — | Extra classes on the row. |
| Prop | Type | Default | Description |
|---|---|---|---|
| title required | ReactNode | — | |
| description | ReactNode | — | |
| href | string | — | |
| icon | ReactNode | — | |
| meta | ReactNode | — | |
| onSelect | () => void | — |
Give your coding assistant the Markdown reference instead of screenshots.
get_component("search-result-card")The full library index for assistants is at /llms.txt.
Input
Output
Input
Output
Input
Input