Member-only story
Buefy — Navbars and Notifications
3 min readJan 7, 2021
Buefy is a UI framework that’s based on Bulma.
In this article, we’ll look at how to use Buefy in our Vue app.
Navbar
Buefy comes with a navbar component.
We can add it with the b-navbar
component:
<template>
<div id="app">
<b-navbar>
<template slot="brand">
<b-navbar-item tag="router-link" :to="{ path: '/' }">
<img src="http://placekitten.com/100/100" alt="cat icon">
</b-navbar-item>
</template>
<template slot="start">
<b-navbar-item href="#">Home</b-navbar-item>
<b-navbar-dropdown label="Info">
<b-navbar-item href="#">About</b-navbar-item>
<b-navbar-item href="#">Contact</b-navbar-item>
</b-navbar-dropdown>
</template> <template slot="end">
<b-navbar-item tag="div">
<div class="buttons">
<a class="button is-primary">
<strong>Sign up</strong>
</a>
<a class="button is-light">Sign in</a>
</div>
</b-navbar-item>
</template>
</b-navbar>
</div>
</template><script>
export default {
name: "App"
};
</script>
We populate the brand
slot with our logo.