1.0.0-rc.7 • Published 6 months ago

@morpheme/timeline v1.0.0-rc.7

Weekly downloads
-
License
MIT
Repository
-
Last release
6 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.0-canary1.74

8 months ago

1.0.0-next.39

10 months ago

1.0.0-edge.2

6 months ago

1.0.0-canary.7

8 months ago

1.0.0-edge.7

6 months ago

1.0.0-alpha.1

6 months ago

1.0.0-alpha.100

7 months ago

1.0.0-canary2.75

8 months ago

1.0.0-rc.7

6 months ago

1.0.0-rc.5

6 months ago

1.0.0-beta.11

10 months ago

1.0.0-next2.41

9 months ago

1.0.0-edge.11

6 months ago

1.0.0-rc.3

6 months ago

1.0.0-rc.4

6 months ago

1.0.0-next.4

9 months ago

1.0.0-rc.1

8 months ago

1.0.0-next.5

9 months ago

1.0.0-rc.0

8 months ago

1.0.0-beta.10

11 months ago

1.0.0-alpha.40

12 months ago

1.0.0-alpha.32

12 months ago

1.0.0-alpha.53

12 months ago

1.0.0-alpha.284

11 months ago

1.0.0-alpha.283

11 months ago

1.0.0-alpha.282

11 months ago

1.0.0-beta.9

11 months ago

1.0.0-alpha.27

12 months ago

1.0.0-alpha.222

11 months ago

1.0.0-alpha.37

12 months ago

1.0.0-alpha.286

11 months ago

1.0.0-alpha.69

12 months ago

1.0.0-beta.8

1 year ago

1.0.0-alpha.13

1 year ago

1.0.0-alpha.10

1 year ago

1.0.0-alpha.6

1 year ago

1.0.0-alpha.2

1 year ago

1.0.0-beta.7

1 year ago

1.0.0-alpha.46

1 year ago