DocSpace-buildtools/packages/asc-web-components/icon-button
2022-05-17 11:58:07 +03:00
..
icon-button.stories.js Web:Components:IconButton: add support dark-theme 2021-12-14 11:42:58 +08:00
icon-button.test.js Web: Components: changed component hierarchy 2021-02-24 17:42:09 +03:00
index.js Web:Editor: wrap editor in theme provider and delete theme as props in components 2022-01-27 21:54:58 +08:00
README.md Web: Components/Common: fix imports 2021-02-26 00:19:45 +03:00
styled-icon-button.js Web:Components:IconButton: remove hover effect when icon button is disabled 2022-05-17 11:58:07 +03:00

IconButton

IconButton is used for a action on a page

Usage

import IconButton from "@appserver/components/icon-button";
<IconButton
  size="25"
  isDisabled={false}
  onClick={() => alert("Clicked")}
  iconName={"static/images/search.react.svg"}
  isFill={true}
  isClickable={false}
/>

Properties

Props Type Required Values Default Description
className string - - - Set component class
clickColor string - - - Icon color on click action
color string - - #d0d5da Icon color
hoverColor string - - - Icon color on hover action
iconClickName string - - - Icon name on click action
iconHoverName string - - - Icon name on hover action
iconName string - AZSortingIcon Icon name
id string, number - - - Set component id
isClickable bool - - false Set cursor value
isDisabled bool - - false Tells when the button should present a disabled state
isFill bool - - true Determines if icon fill is needed
onClick func - - - What the button will trigger when clicked
onMouseDown func - - - What the button will trigger when cursor down
onMouseEnter func - - - What the button will trigger when cursor enter
onMouseUp func - - - What the button will trigger when cursor up
size number,string - - 25 Button height and width value
style obj, array - - - Accepts css style