Skip to main content

Component <MainLink />

Props

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



Colors

Examples:

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



Shapes

Examples:

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



Sizes

Examples:

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



Weight

Examples:

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



Layouts

Examples:

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



Fonts

Examples:

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



With icons

Examples:

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