Skip to main content

Component <MainButton />

Props

PropsTypeMeaningPossible values
colorstringChange button background colorprimary / blue / dark / white
shapestringChange button border shaperounded / squared
sizestringChange button sizexs / sm / md / lg
weightstringChange button font weightlight / normal / semibold / bold
layoutstringChange button general stylesfilled / outlined
fontTypestringChange button font familymain / heading / banner
iconBeforenodeAdd icont before the textcomponent
iconAfternodeAdd icont after the textcomponent



Colors

Examples:

  <MainButton color="primary">Primary</MainButton>
<MainButton color="blue">Primary</MainButton>
<MainButton color="white">White</MainButton>
<MainButton color="dark">Dark</MainButton>



Shapes

Examples:

  <MainButton shape="rounded">Rounded</MainButton>
<MainButton shape="squared">Squared</MainButton>



Sizes

Examples:

  <MainButton size="xs">Tiny</MainButton>
<MainButton size="sm">Small</MainButton>
<MainButton size="md">Medium</MainButton>
<MainButton size="lg">Large</MainButton>



Weight

Examples:

  <MainButton weight="light">Light</MainButton>
<MainButton weight="normal">Normal</MainButton>
<MainButton weight="semibold">Semibold</MainButton>
<MainButton weight="bold">Bold</MainButton>



Layouts

Examples:

  <MainButton layout="filled">Filled</MainButton>
<MainButton layout="outlined">Outlined</MainButton>



Fonts

Examples:

  <MainButton fontType="main">Main</MainButton>
<MainButton fontType="heading">Heading</MainButton>
<MainButton fontType="banner">Banner</MainButton>



With icons

Examples:

  <MainButton iconBefore={<i className="icon-plus" />}>Button</MainButton>
<MainButton iconAfter={<i className="icon-x-mark" />}>Button</MainButton>
<MainButton iconBefore={<i className="icon-check-mark" />} iconAfter={<i className="icon-share" />}>Button</MainButton>