Radius

Icon buttons are a quick and visual way to express an action. Icon buttons can have different radius factors using the rounded prop.

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

Size

Icon buttons are a quick and visual way to express an action. Icon buttons can have different sizes using the size prop.

نمایش کد
vue

Color:default

Icon buttons can have different colors. The following example shows a default button, using the color prop.

نمایش کد
vue

Muted color

Icon buttons can have different colors. The following example shows a muted button, using the color prop.

نمایش کد
vue

Color:primary

Icon buttons can have different colors. The following example shows a primary button, using the color prop.

نمایش کد
vue

Color:info

Icon buttons can have different colors. The following example shows a info button, using the color prop.

نمایش کد
vue

Color:success

Icon buttons can have different colors. The following example shows a success button, using the color prop.

نمایش کد
vue

Color:warning

Icon buttons can have different colors. The following example shows a warning button, using the color prop.

نمایش کد
vue

Color:danger

Icon buttons can have different colors. The following example shows a danger button, using the color prop.

نمایش کد
vue

State:loading

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

نمایش کد
vue

State:disabled

Icon buttons can be shown in a disabled state. Use the disabled prop to show a disabled button.

نمایش کد
vue

Button group

Icon buttons can be grouped into a single element using a flex container. Adjust border radiuses and borders to create a seamless group.

نمایش کد
vue
disabled
Whether the button or link is disabled.
نمایش مثال
vue
href
Using href instead of to result in a native anchor with no router functionality.
نمایش مثال
vue
loading
Whether the button or link is in a loading state.
نمایش مثال
vue
rel
The value for the `rel` attribute on the button or link. This property is only relevant for links.
نمایش مثال
vue
target
The value for the `target` attribute on the button or link. This property is only relevant for links.
نمایش مثال
vue
to
The route to navigate to when the button or link is clicked. If this is set and the `type` property is not set, the component will be treated as a link.
نمایش مثال
vue
type
The type of button. If this is not set and the `to` property is set, the component will be treated as a link.
نمایش مثال
vue
color
The color of the button.
نمایش مثال
vue
rounded
The radius of the button or link.

@since

2.0.0

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