AsterUIDocsv1.0.2

Docs / Component reference

VisuallyHidden & SkipLink

Give assistive technology a text label without displaying it visually. SkipLink lets a keyboard user jump to the main content.

Visually hidden example

Install

sh
npx @fierst/ui@1.0.2 add visually-hidden

Registry dependencies: theme.

Exports from ./ui/visually-hidden: VisuallyHidden, SkipLink.

Download the registry source for visually-hidden 1.0.2.

API contracts

ts
export function VisuallyHidden(props: { children?: View })

export function SkipLink({
  href = '#main-content',
  label = 'Skip to main content',
}: {
  href?: string;
  label?: string;
})