Knit UI
GitHub

Playground

Loading playground…

Playground
<VisuallyHidden>
  Screen reader only text
</VisuallyHidden>

Examples

Hidden From Sight

Demonstrates that content is present in the DOM even though it is invisible; inspect the element to confirm.

Loading example…

Hidden From SightSourceStorybook

Icon Button Label

An icon-only button pattern: the visible icon is accompanied by a VisuallyHidden label for screen readers.

Loading example…

Icon Button LabelSourceStorybook

With Id

Forwarding an id attribute so the hidden text can be referenced via aria-labelledby or aria-describedby.

Loading example…

With IdSourceStorybook

Empty Children

Renders correctly with no children — useful for conditional label patterns that may produce no text.

Loading example…

Empty ChildrenSourceStorybook

Multiple Labels

Multiple hidden labels used together — each independently available to assistive technology.

Loading example…

Multiple LabelsSourceStorybook

Props

PropTypeDefaultDescription
disabled systemboolean | undefinedSpecifies the disabled state of the text view for testing purposes.
size system"xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
theme systemThemeName | null | undefinedApplies a theme to this element
Accessibility & DOM props (2)
PropType
keyKey | null | undefined
refRef<TamaguiTextElement> | undefined

Plus 507 inherited style props from Box — the full Tamagui/React Native style surface, including token shorthands like p, mx, bg and c. See Tokens for the scales they accept, or the full list.