DocSpace-client/web/ASC.Web.Components/src/components/group-button
2019-09-10 16:15:36 +03:00
..
all.group-buttons.stories.js web: components: Moved story for GroupButton + added base test 2019-09-08 16:13:41 +03:00
group-button.stories.js web: components: Moved story for GroupButton + added base test 2019-09-08 16:13:41 +03:00
group-button.test.js web: components: Moved story for GroupButtonsMenu + added base test 2019-09-08 16:36:39 +03:00
index.js web: Components: Added missing PropTypes at GroupButton component. 2019-09-09 17:32:24 +03:00
README.md web: Components: Fixed README of GroupButton component. 2019-09-10 16:15:36 +03:00

GroupButton

Usage

import { GroupButton } from "asc-web-components";

Description

Base Button is used for a group action on a page.

It can be used as selector with checkbox for this following properties are combined: isDropdown, isSeparator.

isSeparator will add vertical bar after button.

isDropdown allows adding items to dropdown list in children.

For health of checkbox, button inherits part of properties of this component.

Usage

<GroupButton
  label="Group button"
  disabled={false}
  isDropdown={false}
  opened={false}
/>

Properties

Props Type Required Values Default Description
label string - - Group button Value of the group button
disabled bool - - false Tells when the button should present a disabled state
isDropdown bool - - false Tells when the button should present a dropdown state
isSeparator bool - - false Tells when the button should contain separator
opened bool - - false Tells when the button should be opened by default
action func - - - What the button will trigger when clicked
tabIndex number - - -1 Value of tab index
onClick func - - - Property for onClick action
fontWeight string - - 600 Value of font weight
onSelect func - - - Called when value is selected in selector
selected string - - - Selected value label
onChange func - - - Called when checkbox is checked
isIndeterminate bool - - false Initial value of Indeterminate checkbox
checked bool - - false Initial value of checkbox
dropDownMaxHeight number - - - Selected height value of DropDown