@dxos/react-ui
    Preparing search index...

    Type Alias IconProps

    IconProps: ThemedClassName<Omit<SVGProps<SVGSVGElement>, "ref">> & {
        hue?: IconHue;
        icon: string;
        label?: string;
        size?: Size;
        spin?: boolean;
        tone?: IconTone;
        valence?: IconValence;
    }

    Type declaration

    • Optionalhue?: IconHue

      Colours the glyph with a Tag hue's foreground (--color-<hue>-fg).

    • icon: string
    • Optionallabel?: string

      Names the icon for assistive tech; without it the icon is decorative and hidden.

    • Optionalsize?: Size

      The icon at this size's scale instead of its scope's (one icon in a denser or roomier control).

    • Optionalspin?: boolean

      Rotates continuously, as a busy indicator; still under prefers-reduced-motion. Spinners share one phase (the animation starts at the wall clock's second), so several in a list turn together.

    • Optionaltone?: IconTone

      A lower-emphasis colour (--color-fg-muted or --color-fg-subtle); hue and valence take precedence.

    • Optionalvalence?: IconValence

      Colours the glyph with a valence's semantic text colour (--color-<valence>-text); takes precedence over hue.