import React from "react"; import GroupButton from "./"; import DropDownItem from "../drop-down-item"; export default { title: "Components/GroupButton", component: GroupButton, subcomponents: { DropDownItem }, parameters: { docs: { description: { component: `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_, _isSeparato _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. `, }, }, }, }; const Template = (args) => { return (
); }; export const Default = Template.bind({}); Default.args = { label: "Base group button", disabled: false, isDropdown: true, opened: true, }; const AllTemplate = (args) => { const rowStyle = { marginTop: 8 }; const headerStyle = { marginLeft: 16 }; return (
Active
Hover
Click*(Press)
Disable
); }; export const All = AllTemplate.bind({});