forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFabsView.vue
executable file
·51 lines (49 loc) · 3.09 KB
/
FabsView.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<template lang="pug">
component-view(v-bind:doc="doc")
v-alert(info value) For more information on all the options available for the <code>v-btn</code> component, please navigate to the <router-link to="/components/buttons" class="white--text">Button documentation</router-link>.
</template>
<script>
export default {
name: 'fabs-view',
data () {
return {
doc: {
component: 'buttons',
edit: 'FabsView',
title: 'Buttons: Floating Action Button',
desc: `The <code>v-btn</code> component can be used as a Floating action button. This provides an application a main point of action. Combined with the <code>v-speed-dial</code> component, you can create a diverse set of functions available for your users.`,
examples: [
{ header: "Promoted action", file: "fabs/1", desc: `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 <code>small</code> variant can be used to maintain continuity with similar sized elements.` },
{ header: "Small variant", file: "fabs/2", desc: `For better visual appeal, we use a small button to match our list avatars.` },
{ header: "Display animation", file: "fabs/3", desc: `When displaying for the first time, a floating action button should animate onto the screen. Here we use the <code>v-fab-transition</code> with v-show. You can also use any custom transition provided by Vuetify or your own.` },
{ header: "Lateral screens", file: "fabs/4", desc: `When changing the default action of your button, it is recommended that you display a transition to signify a change. We do this by binding the <code>key</code> prop to a piece of data that can properly signal a change in action to the Vue transition system. While you can use a custom transition for this, ensure that you set the <code>mode</code> prop to <strong>out-in</strong>.` },
{ header: "FAB with speed-dial", file: "fabs/5", desc: `The speed-dial component has an very robust api for customizing your FAB experience exactly how you want.` },
],
props: {
'speed-dial': {
shared: ['positionable'],
model: {
type: ['Boolean'],
default: 'False',
description: 'Used to link the speed-dial state to a button (fab).'
},
params: [
['direction', `String ['top', 'right', 'bottom', 'left']`, 'top', 'Controls the direction that the speed dial list will open.'],
['hover', 'Boolean', 'False', 'Open the speed dial when the button is hovered over.'],
['transition', 'String', 'scale-transition', 'The default transition to be used for the list animation.']
]
}
},
slots: {
'speed-dial': {
shared: ['default'],
params: [
['activator', 'The element that will activate the menu']
]
}
}
}
}
}
}
</script>