@varlet/ui
Version:
A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.
57 lines (45 loc) • 1.36 kB
TypeScript
import { VNode } from 'vue'
import {
BasicAttributes,
ListenerProp,
SetPropsDefaults,
Direction as TabsDirection,
VarComponent,
} from './varComponent'
export declare const tabsProps: Record<keyof TabsProps, any>
export type TabsScrollable = 'auto' | 'always'
export type TabsIndicatorPosition = 'normal' | 'reverse'
export { TabsDirection }
export interface TabsProps extends BasicAttributes {
active?: string | number
layoutDirection?: TabsDirection
itemDirection?: TabsDirection
fixedBottom?: boolean
activeColor?: string
inactiveColor?: string
disabledColor?: string
color?: string
indicatorColor?: string
indicatorSize?: string | number
elevation?: boolean | string | number
sticky?: boolean
stickyCssMode?: boolean
stickyZIndex?: number
offsetTop?: string | number
safeArea?: boolean
scrollable?: TabsScrollable
indicatorPosition?: TabsIndicatorPosition
onClick?: ListenerProp<(active: string | number) => void>
onChange?: ListenerProp<(active: string | number) => void>
'onUpdate:active'?: ListenerProp<(active: string | number) => void>
}
export class Tabs extends VarComponent {
static setPropsDefaults: SetPropsDefaults<TabsProps>
$props: TabsProps
$slots: {
default(): VNode[]
}
resize(): void
resizeSticky(): Promise<void>
}
export class _TabsComponent extends Tabs {}