Radius

Buttons are an essential part of any application. Buttons can have different radius factors using the rounded prop.

Default props of all <BaseButton> can be set in your <app>/app.config.ts.
نمایش کد
vue

Size

Buttons can have a smaller size. Use the size prop to change the size of a button.

نمایش کد
vue

Links

Buttons can be rendered as links. Use the to prop to set the link target url.

نمایش کد
vue

Badge

Buttons can have a glowing badge indicator. Use the badge prop to add a badge to your buttons.

نمایش کد
vue

Variant:solid

Buttons can have solid background colors. Use the variant="solid" prop and the color prop to make solid buttons.

نمایش کد
vue

Variant:pastel

Buttons can have pastel background colors. Use the variant="pastel" prop and the color prop to make pastel buttons.

نمایش کد
vue

Variant:outline

Buttons can have outline background colors. Use the variant="outline" prop and the color prop to make outline buttons.

نمایش کد
vue

Icons

Buttons can have icons, both on the left and on the right. Use the Icon component inside the button slot to render the icon you need.

نمایش کد
vue

Shadow:flat

Buttons can have a flat shadow. Use the shadow="flat" prop to add shadows to your buttons.

نمایش کد
vue

Shadow:hover

Buttons can have a hover shadow. Use the shadow="hover" prop to add shadows to your buttons.

نمایش کد
vue

Loading state

Buttons can be shown in a loading state. Use the loading prop to show a loading indicator.

نمایش کد
vue

Disabled state

Buttons can be shown in a disabled state. Use the disabled prop to disable the button.

نمایش کد
vue

Button group

Buttons can be grouped together. Use them inside a BaseButtonGroup component.

نمایش کد
vue
badge
The button badge indicator
نمایش مثال
vue
badge-pulse
Add a pulse animation on the badge
نمایش مثال
vue
disabled
Whether the button should be disabled.
نمایش مثال
vue
href
Using href instead of to result in a native anchor with no router functionality.
نمایش مثال
vue
loading
Whether the button is in a loading state.
نمایش مثال
vue
rel
The value of the 'rel' attribute of the button. This attribute is used to specify the relationship of the linked document with the current document.
نمایش مثال
vue
shadow
Adds a flat or a on hover shadow to the button.
نمایش مثال
vue
target
The value of the 'target' attribute of the button. This attribute is used to specify where to open the linked document.
نمایش مثال
vue
to
The location to which the button should navigate when clicked. This is only applicable if the button is a link.
نمایش مثال
vue
type
The type of the button.
نمایش مثال
vue
color
The color of the button.
نمایش مثال
vue
rounded
The radius of the button.

@since

2.0.0

نمایش مثال
vue
size
The size of the button
نمایش مثال
vue
variant
The variant of the button..

@since

2.0.0

نمایش مثال
vue
#default
This slot has no inherted props
نمایش مثال
vue
color
The color of the button.
نمایش مثال
vue
rounded
The radius of the button.
نمایش مثال
vue
size
The size of the button
نمایش مثال
vue
variant
The variant of the button..
نمایش مثال
vue
#default
This slot has no inherted props
نمایش مثال
vue