Button


Description

the default button selector in Ueyen is .un-bu. The default button can turn into other types of a button by having an additional class that is described below. The _narrow and _outline classes can be combined with the default button selector and can be both assigned together, to get a new type of button.


Button types

Ueyen buttons come in 6 different types.

To get different button types, we can add on of the following additional classes







All the button elements must have the class .un-bu



un-bu  _primary

Primary button

un-bu  _quiet

Quiet button

un-bu  _attn

Attn button

un-bu  _alert

Alert button

un-bu  _success

Success button

un-bu  _link

Link button


Button variations

There are three different button variations, with the class selectors of _outline, _round and _narrow in Ueyen that can be also combined to gether.

Outlined buttons

To get the outline buttons, we can add the additional class of _outline to any type of button.





un-bu  _primary _outline

Outlined Primary button

un-bu  _quiet _outline

Outlined Quiet button

un-bu  _attn _outline

Outlined Attn button

un-bu  _alert _outline

Outlined Alert button

un-bu  _success _outline

Outlined Success button

un-bu  _link _outline

Outlined Link button



Rounded buttons

To get the rounded buttons, we can add the additional class of _outline to any type of button.





un-bu  _primary _round

Rounded Primary button

un-bu  _quiet _round

Rounded Quiet button

un-bu  _attn _round

Rounded Attn button

un-bu  _alert _round

Rounded Alert button

un-bu  _success _round

Rounded Success button

un-bu  _link _round

Rounded Link button



narrowed buttons

To get the narrowed buttons, we can add the additional class of _outline to any type of button.





un-bu  _primary _narrow

Narrowed Primary button

un-bu  _quiet _narrow

Narrowed Quiet button

un-bu  _attn _narrow

Narrowed Attn button

un-bu  _alert _narrow

Narrowed Alert button

un-bu  _success _narrow

Narrowed Success button

un-bu  _link _narrow

Narrowed Link button




Example of using multiple variations on the same button.

The buttons below have multiple variations at the same time.


Markup
 





Button container

The button container can be advantageous in cases where we have more than one button. The container is set to automatically give us the best possible positioning and gap.


un-bu-container

Left-aligned Button container

un-bu-container-c

Center-aligned Button container

un-bu-container-r

Right-aligned Button container



Example of using the button container

The button container is nesting two buttons.



Markup
 


Button container with breakpoints

The button container classes can be followed by :s which is breakpoint-small, to :h which is breakpoint-huge to be effective on different breakpoints.


un-bu-container:s

Left-aligned on larger than Breakpoint small

un-bu-container-c:s

Center-aligned on larger than Breakpoint small

un-bu-container-r:s

Right-aligned on larger than Breakpoint small

un-bu-container:m

Left-aligned on larger than Breakpoint medium

un-bu-container-c:m

Center-aligned on larger than Breakpoint medium

un-bu-container-r:m

Right-aligned on larger than Breakpoint medium

un-bu-container:l

Left-aligned on larger than Breakpoint large

un-bu-container-c:l

Center-aligned on larger than Breakpoint large

un-bu-container-r:l

Right-aligned on larger than Breakpoint large

un-bu-container:h

Left-aligned on larger than Breakpoint huge

un-bu-container-c:h

Center-aligned on larger than Breakpoint huge

un-bu-container-r:h

Right-aligned on larger than Breakpoint huge


Example of using the button container on breakpoints

The button container in this example is center-aligned but default, and it will be left-aligned after the screensize gets larger than the breakpoint medium.



Markup