Vuetify — Timeline Customization
3 min readJan 4, 2021
Vuetify is a popular UI framework for Vue apps.
In this article, we’ll look at how to work with the Vuetify framework.
Reverse Direction
We can reverse the direction of the timeline items with the reverse
prop:
<template>
<v-timeline align-top :dense="$vuetify.breakpoint.smAndDown" reverse>
<v-timeline-item
v-for="(item, i) in items"
:key="i"
:color="item.color"
:icon="item.icon"
fill-dot
>
<v-card :color="item.color" dark>
<v-card-title class="title">Lorem Ipsum Dolor</v-card-title>
<v-card-text class="white text--primary">
<p>Lorem ipsum dolor sit amet.</p>
<v-btn :color="item.color" class="mx-0" outlined>Button</v-btn>
</v-card-text>
</v-card>
</v-timeline-item>
</v-timeline>
</template>
<script>
export default {
name: "HelloWorld",
data: () => ({
items: [
{
color: "red lighten-2",
icon: "mdi-star",
},
{
color: "purple darken-1",
icon: "mdi-book-variant",
},
{
color: "green lighten-1",
icon: "mdi-airballoon",
},
],
}),
};
</script>
Timeline Card
We can place a v-card
in a v-timeline-item
component.