yarn add https://github.com/bi0nd0/bootstrap-vue.git#0.3.0
# OR specify a name for the package
yarn add bootstrap-vue-library@https://github.com/bi0nd0/bootstrap-vue.git#0.3.0
yarn upgrade bootstrap-vue
//main.ts
import App from './App.vue'
import {BootstrapVue} from 'bootstrap-vue'
// import the style
import 'bootstrap-vue/dist/style.css'
const app = createApp(App)
app.use(BootstrapVue)
- Modal
- Toast
- Table
- Pagination
- Dropdown
- DropdownItem
- DropdownHeader
- DropdownDivider
- Methods
- Properties
- same as Modal in bootstrap
Pagination
- useToaster
const toaster = useToaster()
toaster.toast({body:`hello world`, title: `Toast!`}, 'top left')
- useModal
const modal = useModal()
const alertResponse = await modal.alert({title: 'alert', body: 'some text'})
const confirmResponse = await modal.confirm({title: 'confirm', body: 'some text'})