ui component state / Read-only
Read-only
用户可以查看但不能修改当前值的状态。
Key fields
Identity
- Subtype
- 状态或变体
- Parent Taxonomy
- Input, Textarea
What
- Definition
- 用户可以查看但不能修改当前值的状态。
- Manifestation
- 与可编辑态区分,同时保持文本对比度。
Why
- Implementation Goal
- 使用 readonly 语义而非误用 disabled,允许复制和读屏读取。
How
- Implementation Guidance
- 默认值明确;状态转换可预测;键盘和触摸路径完整;读屏可感知;高对比和 reduced motion 下仍可用。
Evidence
- Limitations
- 使用语义状态、可见焦点、文本等价和适当的 ARIA 属性表达;不只依赖颜色、动画或声音。
Lifecycle
- Status
- 启用
Related content
Relationships come from the local knowledge graph and include reverse links.