MainButton

February 2, 2026 ยท View on GitHub

The main button is located at the top of the main menu. It may consist of 2 buttons, or on a click to show a pop-up window with other buttons

Usage

import { MainButton } from ".";;
<MainButton text="Button" isDisabled={false} isDropdown={true}>
  <div>Some button</div>
  <Button label="Some button" />
</MainButton>

or

<MainButton
  text="Button"
  isDropdown={false}
  onkAction={() => SomeFunction()}
  moduleName="people"
/>

Properties

PropsTypeRequiredValuesDefaultDescription
classNamestring---Accepts class
onActionfunc---What the main button will trigger when clicked
iconNamestring--PeopleIconIcon inside button
idstring---Accepts id
isDisabledbool--falseTells when the button should present a disabled state
isDropdownbool--trueSelect a state between two separate buttons or one with a drop-down list
moduleNameoneOf-people, mail, documents-The name of the module where the button is used
onClickfunc---DropDown component click action
openedbool---Open DropDown
styleobj, array---Accepts css style
textstring--ButtonButton text