bootstrap-vue-3
Version:
Early (but lovely) implementation of Vue 3, Bootstrap 5 and Typescript
40 lines (39 loc) • 983 B
TypeScript
import type Popper from '@popperjs/core'
import type {ButtonType, ButtonVariant, Size} from '../..'
// Props
export interface Props {
id?: string
menuClass?: Array<unknown> | Record<string, unknown> | string
size?: Size
splitClass?: Array<unknown> | Record<string, unknown> | string
splitVariant?: ButtonVariant
text?: string
toggleClass?: Array<unknown> | Record<string, unknown> | string
autoClose?: boolean | 'inside' | 'outside'
block?: boolean
boundary?: Popper.Boundary
dark?: boolean
disabled?: boolean
dropup?: boolean
dropright?: boolean
dropleft?: boolean
noFlip?: boolean
offset?: number | string
popperOpts?: Record<string, unknown>
right?: boolean
role?: string
split?: boolean
splitButtonType?: ButtonType
splitHref?: string
noCaret?: boolean
toggleText?: string
variant?: ButtonVariant
}
// Emits
export interface Emits {
(e: 'show'): void
(e: 'shown'): void
(e: 'hide'): void
(e: 'hidden'): void
}
// Other