Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bonosoft/sveltekit-timeline

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bonosoft/sveltekit-timeline

Show timelines in a SvelteKit application

  • 0.0.15
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Timeline for SvelteKit

With this module, you are able to add timelines to you Sveltekit site.

Install

Use your package manager to install the module:

npm install @bonosoft/sveltekit-timeline

Adding Timeline to a svelte file in SvelteKit

Now you can start adding timeline components to your pages.

<script lang="ts">
  import { Timeline, TimelineItem } from "@bonosoft/sveltekit-timeline"
</script>

<Timeline>
  <TimelineItem status="done">
    <strong>Do something</strong><br />
    Lorem ipsum dolor sit amet consectetur adipisicing elit.
  </TimelineItem>
  <TimelineItem>
    <strong>Do something</strong><br />
    Lorem ipsum dolor sit amet consectetur adipisicing elit.
  </TimelineItem>
</Timeline>

Standard Timeline

The standard timeline can be modefied by adding different parameters.

Status

On a timeline item, you can set a status: Done, Ready, Wait

  <TimelineItem status="done">
  <TimelineItem status="ready">
  <TimelineItem status="wait">
  <TimelineItem>

Items with no status will have a dotted line to the next item.

Status colors

The standard status colors can be changed from green, cyan and grey to match your site layout

Timeline Colors

  <TimelineItem status="done" doneColor="#080" doneBorderColor="#070">
  <TimelineItem status="ready" readyColor="#088" readyBorderColor="#077">
  <TimelineItem status="wait" waitColor="#555" waitBorderColor="#444">
  <TimelineItem color="#333" borderColor="#222">
  • doneColor and doneBorderColor can be used to set the done status colors
  • readyColor and readyBorderColor can be used to set the ready status colors
  • waitColor and waitBorderColor can be used to set the wait status colors
  • color and borderColor can be used to set the status colors, when no status is set

Size and line width

The size and linewidth attributes can be used to change the size of the dots and connecting line.

  <TimelineItem status="done" size="15" linewidth="3">

  <TimelineItem status="done" size="50" linewidth="10">

Timeline Size

Timeline is also usable as a task or todo list

Keywords

FAQs

Package last updated on 11 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc