npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@mrfastdie/vue-preline

v1.2.2

Published

A Vue 3 implementation of preline and tailwind

Downloads

57

Readme

vue-preline

This Vue 3 plugin publishes some tailwind and preline components.

Recommended Setup

app.ts

import createVuePlugin from "@mrfastdie/vue-preline";
import '../node_modules/@mrfastdie/vue-preline/dist/style.css';
...
const app = createApp(App);
app.use(createVuePlugin())
app.mount('#app');

If you need the power of fontawesome icons, install that plugin aswell.

There are some global types for margin and padding defined, as per tailwind doc.

  • p padding
  • pt padding-top
  • pr padding-right
  • pb padding-bottom
  • pl padding-left
  • px padding left and right
  • py padding top and bottom

And the same goes for m (margin)

Components

VP-Grid

This is a simple grid component.

Usage:

<vp-grid :cols="<numberOfCols>" :gap="<numberOfGab"></vp-grid>

VP-Input

An input field

Usage:

<vp-input />

Following arguments are supported:

  • label a string as label
  • placeholder a string as placeholder
  • type the input type, defaults to text
  • description a string as field description
  • validate true, false or null if the value should get validated
  • errText string or null when validate is false
  • successText string or null when validate is true
  • icon a string array represents the icon from fontawesome
  • value a string which can be used with the .sync modifier to get the current value of that field

To update a value in the parentNode using the value set it up like:

<script setup lang="ts">
import {ref} from 'vue';

const parentValue = ref('');
</script>

Then you can use this childComponent like:

<vp-input v-model:value="parentValue" />

vp-columns

Usage:

<vp-columns columns="cols">entries</vp-columns>

The attribute columns can be one of the following:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • auto
  • 3xs
  • 2xs
  • xs
  • sm
  • md
  • lg
  • xl
  • 2xl
  • 3xl
  • 4xl
  • 5xl
  • 6xl
  • 7xl

Timeline

The timeline persists out of 3 components. This is the wrapper:

<vp-timeline-wrapper>Timeline entries</vp-timeline-wrapper>

And the child components for left and right hand side of that timeline:

<vp-timeline-entry-left>Timeline text</vp-timeline-entry-left>
<vp-timeline-entry-right>Timeline text</vp-timeline-entry-right>

The child component accepts following arguments:

  • headline a string representing the headline
  • date a string the date or range
  • icon a string array represents the icon from fontawesome
  • iconBackgroundColor the css background color for the icon
  • iconTextColor the css text color for the icon

Cards

There are currently 3 card components:

<vp-card-img-top>Card text</vp-card-img-top>
<vp-card-img-left>Card text</vp-card-img-left>
<vp-card-img-right>Card text</vp-card-img-right>

The cards accept following arguments:

  • imgSrc a string which points to the image you want as your card image
  • title a string as title
  • githubUrl a string which points to your gitHub repo