Skip to main content

Icon

Function Icon 

Source
pub fn Icon(props: IconProps) -> impl IntoView
Expand description

内联 SVG 图标。

  • 默认装饰性(aria-hidden);传 label 时作为独立图形朗读(role="img")。
  • size 为像素边长,默认 16;行内图标可加 class="icon-inline" 做 -0.125em 光学对齐。

§Required Props

§Optional Props