Props for Icon component.

interface Props {
    icon: string;
    size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
    cx?: ArgumentArray;
}

Hierarchy

  • Omit<HTMLAttributes<HTMLSpanElement>, "className">
  • WithClass
    • Props

Properties

Properties

icon: string

Iconify icon name.

size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl"

Size of the icon.

cx?: ArgumentArray

If you need to customize style of a component, pass a class names here.