A set of UI Components for Vue2. Very much a work in progress - use at own risk
Installation
$ npm install --save @lfiskr/vue-ui-components
Usage
import Vue from "Vue";
import UiComponents from "@lfiskr/vue-ui-components";
Vue.use(UiComponents);
An optional config object can be passed as well. The option definition can be found in the models section.
import Vue from "Vue";
import UiComponents from "@lfiskr/vue-ui-components";
const options = {
theme: {
primary: "#245e3b"
}
};
Vue.use(UiComponents);
Included components
TimelineComponent: The timeline component accepts an array of TimelineItems.
| Prop | Type | | ----- | -------------- | | items | TimelineItem |
export interface TimelineItem {
title: string;
subtitles?: string[];
text: string;
icon?: Icon;
}
Jumbotron: The jumbotron component accepts two named slots, left and right. This is the content that goes in the left and right section respectively.