Using the example presented here: https://bootstrap-vue.js.org/docs/components/form-file , I am not provided with the styling that the first "styled" example shows.
Both appear "plain" even though my template is as such:
<template>
<div>
<!-- Styled -->
<b-form-file v-model="file" :state="Boolean(file)" placeholder="Choose a file..."></b-form-file>
<div class="mt-3">Selected file: {{file && file.name}}</div>
<!-- Plain mode -->
<b-form-file v-model="file2" class="mt-3" plain></b-form-file>
<div class="mt-3">Selected file: {{file2 && file2.name}}</div>
</div>
</template>
I figured I missed loading the css properly. However, copy-pasting other examples from bootstrap-vue
works just fine. Buttons are styled with the attached JS events - so that doesn't seem to be the issue.
Why does bootstrap-vue load CSS for other components, but apparently not b-form-file
?
bootstrap-vue/dist/bootstrap-vue.css
file into your project? - Troy Morehouse