1.0.1 • Published 11 months ago

@morpheme/timeline v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Morpheme Timeline

Morpheme Timeline Component.

Installation

npm

npm i @morpheme/timeline

yarn

yarn add @morpheme/timeline

pnpm

pnpm i @morpheme/timeline

Usage

<script setup lang="ts">
import {
  VTimeline,
  VTimelineItem,
  VTimelineItemDot,
  VTimelineContent,
} from '@morpheme/timeline';
import VText from '@morpheme/text';
import VBtn from '@morpheme/button';

const items = [
  {
    date: 'June 2022',
    title: 'New feature release',
    description:
      "We've released an exciting new feature that will change the way you use our product.",
    link: '#',
    icon: 'mdi:rocket',
    button: 'View release notes',
    dot: {
      color: 'primary.100',
      textColor: 'primary.600',
    },
  },
  {
    date: 'May 2022',
    title: 'User interface redesign',
    description:
      "We've updated our user interface to improve usability and make it more intuitive.",
    link: '#',
    icon: 'mdi:palette',
    dot: {
      color: 'gray.100',
      textColor: 'gray.600',
    },
  },
  {
    date: 'April 2022',
    title: 'Server migration',
    description:
      "We're moving our servers to a new data center to improve performance and reliability.",
    link: '#',
    icon: 'mdi:server',
    dot: {
      color: 'warning.100',
      textColor: 'warning.600',
    },
  },
  {
    date: 'March 2022',
    title: 'New logo',
    description:
      "We've updated our logo to make it more recognizable and memorable.",
    link: '#',
    icon: 'mdi:brush',
    dot: {
      color: 'error.100',
      textColor: 'error.600',
    },
  },
];
</script>

<template>
  <VTimeline>
    <VTimelineItem v-for="item in items" :key="item.title">
      <VTimelineItemDot v-bind="item.dot">
        <VIcon :name="item.icon" size="xs" />
      </VTimelineItemDot>
      <VTimelineItemContent>
        <VText font-weight="semibold">
          {{ item.title }}
        </VText>
        <VText variant="sm" color="gray.500" class="mt-1">
          Published on {{ item.date }}
        </VText>
        <VText color="gray.600" class="mt-1">
          {{ item.description }}
        </VText>
        <VBtn v-if="item.button" class="mt-4">
          {{ item.button }}
        </VBtn>
      </VTimelineItemContent>
    </VTimelineItem>
  </VTimeline>
</template>

Documentation

Check out storybook documentation here.

License

MIT

1.0.1

11 months ago

1.0.0

11 months ago

1.0.0-alpha.5

1 year ago

1.0.0-rc.12

1 year ago

1.0.0-canary1.74

2 years ago

1.0.0-next.39

2 years ago

1.0.0-edge.2

2 years ago

1.0.0-canary.7

2 years ago

1.0.0-edge.7

2 years ago

1.0.0-alpha.1

2 years ago

1.0.0-alpha.100

2 years ago

1.0.0-canary2.75

2 years ago

1.0.0-rc.7

2 years ago

1.0.0-rc.5

2 years ago

1.0.0-beta.11

2 years ago

1.0.0-next2.41

2 years ago

1.0.0-edge.11

2 years ago

1.0.0-rc.3

2 years ago

1.0.0-rc.4

2 years ago

1.0.0-next.4

2 years ago

1.0.0-rc.1

2 years ago

1.0.0-next.5

2 years ago

1.0.0-rc.0

2 years ago

1.0.0-beta.10

2 years ago

1.0.0-alpha.40

2 years ago

1.0.0-alpha.32

2 years ago

1.0.0-alpha.53

2 years ago

1.0.0-alpha.284

2 years ago

1.0.0-alpha.283

2 years ago

1.0.0-alpha.282

2 years ago

1.0.0-beta.9

2 years ago

1.0.0-alpha.27

2 years ago

1.0.0-alpha.222

2 years ago

1.0.0-alpha.37

2 years ago

1.0.0-alpha.286

2 years ago

1.0.0-alpha.69

2 years ago

1.0.0-beta.8

2 years ago

1.0.0-alpha.13

2 years ago

1.0.0-alpha.10

2 years ago

1.0.0-alpha.6

2 years ago

1.0.0-alpha.2

2 years ago

1.0.0-beta.7

2 years ago

1.0.0-alpha.46

2 years ago