bootstrap-vue
Version:
Quickly integrate Bootstrap 4 components with Vue.js
35 lines (32 loc) • 669 B
JavaScript
import { mergeData } from "../../utils";
export const props = {
tag: {
type: String,
default: "ul"
},
fill: {
type: Boolean,
default: false
},
justified: {
type: Boolean,
default: false
}
};
export default {
functional: true,
props,
render(h, { props, data, children }) {
return h(
props.tag,
mergeData(data, {
staticClass: "navbar-nav",
class: {
"nav-fill": props.fill,
"nav-justified": props.justified
}
}),
children
);
}
};