有四种类型操作项): Assist 辅助型、filter 筛选型、input 输入型和Suggestion建议型

Updates 更新

颜色简单,提升文本与按钮之间的视觉层级

M2

M3

Assist chip  辅助组件

1 Container 2 Label test 3 Leading icon

1 Enabled 已启用 2 Disabled 已禁用 3 Hovered 悬停 4 Focused 已聚焦 5 Pressed 按下 6 拖动中

Assist chip measurements  辅助组件测量

Attribute  属性 | Value  值

Height  高度 | 32dp

Shape  形状 | 8dp 圆角半径

Icon size  图标大小 | 18dp

Vertical label text alignment垂直标签文本对齐方式 | Center-aligned  居中对齐

Horizontal label text alignment水平标签文本对齐方式 | Start-aligned  起始对齐

Left/right padding  左右内边距 | 16dp

Left/right padding with-icon带图标左/右内边距 | 8dp

Padding between elements元素之间的间距 | 8dp

Filter chip  过滤组件

1 Container 2 Label test 3 Leading icon 4 Trailing icon

1 Enabled 已启用 2 Disabled 已禁用 3 Hovered 悬停 4 Focused 已聚焦 5 Pressed 按下 6 拖动中

Attribute  属性 | Value  值

Container height  容器高度 | 32dp

Container shape  容器形状 | 8dp 圆角半径

Icon size  图标大小 | 18dp

Vertical label text alignment垂直标签文本对齐方式 | Center-aligned  居中对齐

Horizontal label text alignment水平标签文本对齐方式 | Start-aligned  起始对齐

Left/right padding  左右内边距 | 16dp

Left/right padding with icon带图标的左右内边距 | 8dp

Padding between elements元素之间的间距 | 8dp

Input chip  输入组件

1 Container 容器 2 Label text 标签文本 3 Trailing icon 尾部图标 4 Leading icon 前置图标

1 Enabled 已启用 2 Disabled 已禁用 3 Hovered 悬停 4 Focused 已聚焦 5 Pressed 按下 6 拖动中

Attribute  属性 | Value  值

Container height  容器高度 | 32dp

Container shape  容器形状 | 8dp 圆角半径

Icon size  图标大小 | 18dp

Avatar shape  头像形状 | 12dp 圆角半径

Avatar size  头像大小 | 24dp

Vertical label text alignment垂直标签文本对齐方式 | Center-aligned  居中对齐

Horizontal label text alignment水平标签文本对齐方式 | Start-aligned  起始对齐

Left padding for avatar头像左内边距 | 4dp

Right padding for avatar头像右内边距 | 8dp

Left/right padding for icon图标左/右内边距 | 8dp

Padding between elements元素之间的间距 | 8dp

Target size for close icon关闭图标目标大小 | Min 48dp

Suggestion chip  建议组件

1 Container 容器 2 Label text 标签文本

1 Enabled 已启用 2 Disabled 已禁用 3 Hovered 悬停 4 Focused 已聚焦 5 Pressed 按下 6 拖动中

Attribute  属性 | Value  值

Container height  容器高度 | 32dp

Container shape  容器形状 | 8dp 圆角半径

Icon size  图标大小 | 18dp

Vertical label text alignment垂直标签文本对齐方式 | Center-aligned  居中对齐

Horizontal label text alignment水平标签文本对齐方式 | Start-aligned  起始对齐

Left/right padding without icon无图标时的左右内边距 | 16dp

Left/right padding with icon带图标的左右内边距 | 8dp

Padding between elements元素之间的间距 | 8dp