¥Visually Hidden
以易于访问的方式隐藏屏幕内容。
Visually hides content while preserving it for assistive technology.
¥Installation
从命令行安装组件。
¥Install the component from your command line.
¥Anatomy
导入组件。
¥Import the component.
¥Basic example
使用视觉隐藏的基础组件。
¥Use the visually hidden primitive.
¥API Reference
¥Root
你放入此组件中的任何内容都将在屏幕上隐藏,但屏幕阅读器会读出。
¥Anything you put inside this component will be hidden from the screen but will be announced by screen readers.
¥Accessibility
这在某些情况下非常有用,可以替代传统的 aria-label
或 aria-labelledby
标签。
¥This is useful in certain scenarios as an alternative to traditional labelling with aria-label
or aria-labelledby
.