图标按钮

用紧凑且无障碍的纯图标按钮触发操作。

输入、选择、校验、日期和原生表单行为。

lr-icon-button

import '@aceshooting/lyra-ui/components/lr-icon-button.js';

示例

import '@aceshooting/lyra-ui/components/lr-icon-button.js';
import '@aceshooting/lyra-ui/components/lr-icon.js';

<div style="display:flex;gap:8px;align-items:center;justify-content:center">
<lr-icon-button icon="search" aria-label="Search">
</lr-icon-button>
<lr-icon-button icon="add" aria-label="Add">
</lr-icon-button>
<lr-icon-button icon="trash" aria-label="Delete">
</lr-icon-button>
<lr-icon-button icon="close" aria-label="Close" disabled>
</lr-icon-button>
</div>

阅读指南(英文)

相关组件

  • 输入框 — 单行文本字段,可显示标签、提示和内联校验信息。
  • 国家选择器 — 使用本地化名称、旗帜和可选搜索来选择国家和地区代码。
  • 货币选择器 — 使用本地化名称、符号和可选搜索来选择货币代码。
  • 时区选择器 — 从有序列表中选择时区标识符,支持可选搜索。
  • 单位选择器 — 使用本地化名称、符号和可选搜索来选择计量单位。
  • 语言选择器 — 从组件库语言注册表中选择并切换当前语言的下拉列表。