We currently don't have support for an items prop that would
allow for slot based rendering of the content. For now, use the TabsContent
import directly from the reka-ui package.
Guard called when the router is navigating to the route that is rendering
this component from a different route. Differently from beforeRouteUpdate
and beforeRouteLeave, beforeRouteEnter does not have access to the
component instance through this because it triggers before the component
is even mounted.
beforeRouteUpdate?: NavigationGuard
Guard called whenever the route that renders this component has changed, but
it is reused for the new route. This allows you to guard for changes in
params, the query or the hash.
beforeRouteLeave?: NavigationGuard
Guard called when the router is navigating away from the current route that
is rendering this component.
head?: ((nuxtApp: NuxtApp) => U<Deprecated>)
Available exclusively for defineNuxtComponent.
It will not be executed when using defineComponent.
defaultValue
string | number
The value of the tab that should be active when initially rendered. Use when you do not need to control the state of the tabs
orientation
horizontal
"vertical" | "horizontal"
The orientation the tabs are laid out.
Mainly so arrow navigation is done accordingly (left & right vs. up & down)
dir
"ltr" | "rtl"
The reading direction of the combobox when applicable. If omitted, inherits globally from ConfigProvider or assumes LTR (left-to-right) reading mode.
activationMode
automatic
"automatic" | "manual"
Whether a tab is activated automatically (on focus) or manually (on click).
modelValue
string | number
The controlled value of the tab to activate. Can be bind as v-model.
unmountOnHide
`true`
boolean
When true, the element will be unmounted on closed state.
asChild
boolean
Change the default rendered element for the one passed as a child, merging their props and behavior.Read our Composition guide for more details.
Guard called when the router is navigating to the route that is rendering
this component from a different route. Differently from beforeRouteUpdate
and beforeRouteLeave, beforeRouteEnter does not have access to the
component instance through this because it triggers before the component
is even mounted.
beforeRouteUpdate?: NavigationGuard
Guard called whenever the route that renders this component has changed, but
it is reused for the new route. This allows you to guard for changes in
params, the query or the hash.
beforeRouteLeave?: NavigationGuard
Guard called when the router is navigating away from the current route that
is rendering this component.
head?: ((nuxtApp: NuxtApp) => U<Deprecated>)
Available exclusively for defineNuxtComponent.
It will not be executed when using defineComponent.
value
string | number
A unique value that associates the trigger with a content.
disabled
boolean
When true, prevents the user from interacting with the tab.
asChild
boolean
Change the default rendered element for the one passed as a child, merging their props and behavior.Read our Composition guide for more details.