import{_ as e,c as t,o as a,N as o}from"./chunks/framework.0799945b.js";const u=JSON.parse('{"title":"Module: features/tabs/tab","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/features/tabs/tab.md","lastUpdated":null}'),r={name:"api/modules/features/tabs/tab.md"},d=o('
• BaseTab: Object
The properties that are added onto a processed TabOptions to create an Tab.
Name | Type | Description |
---|---|---|
[Component] | GenericComponent | The Vue component used to render this feature. |
[GatherProps] | () => Record <string , unknown > | A function to gather the props the vue component requires for this feature. |
id | string | An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates. |
type | typeof TabType | A symbol that helps identify features of the same type. |
profectus/src/features/tabs/tab.ts:31
• TabOptions: Object
An object that configures a Tab.
Name | Type | Description |
---|---|---|
classes? | Computable <Record <string , boolean >> | Dictionary of CSS classes to apply to this feature. |
display | Computable <CoercableComponent > | The display to use for this tab. |
style? | Computable <StyleValue > | CSS to apply to this feature. |
profectus/src/features/tabs/tab.ts:19
Ƭ GenericTab: Tab
<TabOptions
>
A type that matches any valid Tab object.
profectus/src/features/tabs/tab.ts:56
Ƭ Tab<T
>: Replace
<T
& BaseTab
, { classes
: GetComputableType
<T
["classes"
]> ; display
: GetComputableType
<T
["display"
]> ; style
: GetComputableType
<T
["style"
]> }>
An object representing a tab of content in a tabbed interface.
See
TabFamily
Name | Type |
---|---|
T | extends TabOptions |
profectus/src/features/tabs/tab.ts:46
• Const
TabType: typeof TabType
A symbol used to identify Tab features.
profectus/src/features/tabs/tab.ts:14
▸ createTab<T
>(optionsFunc
): Tab
<T
>
Lazily creates a tab with the given options.
Name | Type |
---|---|
T | extends TabOptions |
Name | Type | Description |
---|---|---|
optionsFunc | OptionsFunc <T , BaseTab , GenericTab > | Tab options. |
Tab
<T
>