Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a fab button in vuetify?

I want to create a position fixed/absolute fab button on bottom right of page in vuetify.

I have this

    <v-btn fab dark large color="primary">
        <v-icon dark>add</v-icon>
    </v-btn>

but it puts the button as left aligned and not fixed.

like image 657
omega Avatar asked Nov 08 '18 20:11

omega


People also ask

How do I create a button in Vuetify?

Vuetify Tile Button You can create them with the tile prop: <template> <v-app> <v-row class="ma-4" justify="space-around"> <v-btn tile> Tile Button </v-btn> <v-btn tile color="yellow"> Tile Button </v-btn> <v-btn tile color="blue"> Tile Button</v-btn> </v-row> </v-app> </template> ...

What is fab in Vuetify?

Usage. Floating action buttons can be attached to material to signify a promoted action in your application. The default size will be used in most cases, whereas the small variant can be used to maintain continuity with similar sized elements.

What is a floating action button?

A floating action button (FAB) is a circular button that triggers the primary action in your app's UI. This page shows you how to add the FAB to your layout, customize some of its appearance, and respond to button taps.

How do I make a floating button in HTML?

Add the big button So we add the following <div>s. So we add the CSS rules, set the position fixed, 50px from bottom and 50px from the right. Add the cursor:pointer so it will look like a button. Then we add the <div class=”button iconbutton”> to wrap the fontawesome plus icon.


1 Answers

    <v-btn fab dark large color="primary" fixed right bottom>
        <v-icon dark>add</v-icon>
    </v-btn>
like image 134
omega Avatar answered Sep 24 '22 20:09

omega