Button Group # 
It is a special component that wrap buttons and applies special styles to them.
Examples # 
Basic usage # 
By default, you need to wrap your buttons with a va-button-group component.
Colors # 
Component provides color to each child button.
Gradient # 
Itโs used to apply a gradient style to a background.
Sizes # 
You can set different sizes.
Grow # 
Makes button group grow to the width of its container.
Presets & styles # 
You can use the same preset's (default, primary, secondary, plain, plainOpacity) and styles (round, outline via borderColor property) as in va-button.
Icons # 
Looks good with icons provided to buttons.
API # 
Props #
| Name | Description | Types | Default | 
|---|---|---|---|
| activeClass | Applied when the link is active. More info here. | 
 | - | 
| append | When set, always appends the relative path to the current path. More info here. | 
 | - | 
| backgroundOpacity | Sets up button background opacity. | 
 | 
 | 
| borderColor | Color CSS style  | 
 | 
 | 
| color | Color of the component (theme string or  | 
 | 
 | 
| disabled | Applies  | 
 | 
 | 
| exact | Exactly match the link. Without this, '/' will match every route. More info here. | 
 | - | 
| exactActiveClass | Applied when the link is active with exact match. More info here. | 
 | - | 
| fontSizesConfig | Provide a set of sizes for fonts as a global component specific setting. | 
 |  | 
| gradient | Adds a background gradient. | 
 | 
 | 
| grow | Take all container width | 
 | 
 | 
| hoverBehavior | Behavior of the button, when it's being hovered. Can be  | 
 | 
 | 
| hoverMaskColor | Mask color for  | 
 | 
 | 
| hoverOpacity | Opacity value for  | 
 | 
 | 
| href | Designates the component as anchor and applies the href attribute. More info here. | 
 | - | 
| icon | Sets an icon. | 
 | 
 | 
| iconColor | Sets an icon color. | 
 | 
 | 
| iconRight | The icon to be displayed to the right of a title. | 
 | 
 | 
| loading | Indicates that something is loading (spinner icon). | 
 | 
 | 
| plain | Applies  | 
 | 
 | 
| preset | Named preset combination of component props. | 
 | - | 
| pressedBehavior | Behavior of the button, when it's being pressed. Can be  | 
 | 
 | 
| pressedMaskColor | Mask color for  | 
 | 
 | 
| pressedOpacity | Opacity value for  | 
 | 
 | 
| replace | When set, calls  | 
 | - | 
| round | Adds rounded corners (or make a button fully rounded if only icon is passed). | 
 | 
 | 
| size | Specify size for component.  | 
 | 
 | 
| sizesConfig | Provide a set of sizes as a global component specific setting. | 
 |  | 
| tag | Replaces html tag. This is useful for semantics and also to allow for valid markup in some cases ( | 
 | 
 | 
| target | Navigation target, More info here. | 
 | - | 
| textColor | Text color (theme string or HEX string). | 
 | 
 | 
| textOpacity | Sets button text opacity. | 
 | 
 | 
| to | The target route of the link. More info here. | 
 | - | 
| type | Will be used as value for html  | 
 | 
 | 
Slots #
| Name | Description | 
|---|---|
| default | Slot for buttons | 
Css Variables #
| Name | Default Value | 
|---|---|
| --va-button-group-display | flex | 
| --va-button-group-justify-content | stretch | 
| --va-button-group-border-radius | 999px | 
| --va-button-group-gap | 0.25rem | 
| --va-button-group-button-margin | 0 | 
| --va-button-group-button-width | auto | 
| --va-button-group-button-padding | 0.25rem |