IconButton

Icon button renders an icon within in a button

  • Name@spark-ui/icon-button
    Version2.0.21
    LicenseMIT
    npmgithubReported IssuesReport a bug
  • Install#

    AttributeTypeDescriptionDefault
    aria-label*stringDefines a string value that labels the current element.null
    design"filled" | "outlined" | "tinted" | "ghost" | "contrast"-filled
    disabledboolean-{"value":false}
    intent"main" | "support" | "accent" | "basic" | "success" | "alert" | "danger" | "info" | "neutral" | "surface"-main
    size"sm" | "md" | "lg"-md
    shape"rounded" | "square" | "pill"-rounded
    asChildbooleanChange the component to the HTML tag or custom component of the only child.null
    isLoadingbooleanDisplay a spinner to indicate to the user that the button is loading something after they interacted with it.null
    loadingLabelstringIf your loading state should only display a spinner, it's better to specify a label for it (a11y).null
    spinnerPlacement"left" | "right"-null