bootstrap-vue-3
Version:
Early (but lovely) implementation of Vue 3, Bootstrap 5 and Typescript
37 lines (36 loc) • 850 B
TypeScript
import type {ColorVariant} from '..'
import type {Popover} from 'bootstrap'
import type {ComponentPublicInstance} from 'vue'
// Props
export interface Props {
id?: string
title?: string
content?: string
container?: string | ComponentPublicInstance<HTMLElement> | HTMLElement
noninteractive?: boolean
placement?: Popover.Options['placement']
target?: string | ComponentPublicInstance<HTMLElement> | HTMLElement
delay?: number | DelayObject
triggers?: Popover.Options['trigger']
show?: boolean
variant?: ColorVariant
html?: boolean
sanitize?: boolean
offset?: Popover.Options['offset']
}
// Emits
export interface Emits {
(e: 'show'): void
(e: 'shown'): void
(e: 'hide'): void
(e: 'hidden'): void
(e: 'inserted'): void
}
// Other
/**
* @external
*/
export interface DelayObject {
show: number
hide: number
}