VTab API
组件页面
属性
名称 | 类型 | 默认值 |
---|---|---|
append-icon | ||
Creates a v-icon component after default content in the append slot. | ||
base-color | ||
Sets the color of component when not focused. | ||
border | ||
Designates the border-radius applied to the component. This can be xs, sm, md, lg, xl. | ||
color | ||
Applies specified color to the control - supports utility colors (for example success or purple) or css color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page . | ||
density | ||
Adjusts the vertical height used by the component. | ||
direction | ||
Changes the direction of the tabs. Can be either horizontal or vertical. | ||
disabled | ||
Removes the ability to click or target the component. | ||
elevation | ||
Designates an elevation applied to the component between 0 and 24. You can find more information on the elevation page . | ||
exact | ||
Exactly match the link. Without this, ‘/’ will match every route. You can find more information about the exact prop on the vue-router documentation. | ||
fixed | ||
Forces component to take up all available space up to their maximum width (300px), and centers it. | ||
height | ||
Sets the height for the component. | ||
hide-slider | ||
Hides the active tab slider component (no exit or enter animation). | ||
href | ||
Designates the component as anchor and applies the href attribute. | ||
icon | ||
Apply a specific icon using the v-icon component. The button will become round. | ||
loading | ||
Displays linear progress bar. Can either be a String which specifies which color is applied to the progress bar (any material color or theme color - primary, secondary, success, info, warning, error) or a Boolean which uses the component color (set by color prop - if it’s supported by the component) or the primary color. | ||
max-height | ||
Sets the maximum height for the component. | ||
max-width | ||
Sets the maximum width for the component. | ||
min-height | ||
Sets the minimum height for the component. | ||
min-width | ||
Sets the minimum width for the component. | ||
prepend-icon | ||
Creates a v-icon component in the prepend slot before default content. | ||
readonly | ||
Puts the button in a readonly state. Cannot be clicked or navigated to by keyboard. | ||
replace | ||
Setting replace prop will call router.replace() instead of router.push() when clicked, so the navigation will not leave a history record. You can find more information about the replace prop on the vue-router documentation. | ||
ripple | ||
Applies the v-ripple directive. | ||
rounded | ||
Designates the border-radius applied to the component. This can be 0, xs, sm, true, lg, xl, pill, circle, and shaped. Find more information on available border radius classes on the Border Radius page . | ||
selected-class | ||
Configure the active CSS class applied when an item is selected. | ||
size | ||
Sets the height and width of the component. Default unit is px. Can also use the following predefined sizes: x-small, small, default, large, and x-large. | ||
slider-color | ||
Applies specified color to the slider when active on that component - supports utility colors (for example success or purple) or css color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page . | ||
slim | ||
Reduces padding to 0 8px. | ||
stacked | ||
Displays the tab as a flex-column. | ||
tag | ||
Specify a custom tag used on the root element. | ||
text | ||
Specify content text for the component. | ||
theme | ||
Specify a theme for this component and all of its children. | ||
tile | ||
Removes any applied border-radius from the component. | ||
to | ||
Denotes the target route of the link. You can find more information about the to prop on the vue-router documentation. | ||
value | ||
The value used when the component is selected in a group. If not provided, a unique ID will be used. | ||
variant | ||
Applies a distinct style to the component. | ||
width | ||
Sets the width for the component. |
插槽
append |
Adds an item inside the input and after input content. |
default |
The default Vue slot. |
loader |
Slot for custom loader (displayed when loading prop is equal to true). |
prepend |
Adds an item outside the input and before input content. |
可用属性
group |
Internal representation when used in VBtnToggle. |