Socket
Socket
Sign inDemoInstall

vue-monograms

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-monograms

Vue Component to generate a monogram svg shape with letters in that resembles your first/last name


Version published
Weekly downloads
1
Maintainers
1
Install size
464 kB
Created
Weekly downloads
 

Readme

Source

Vue Monograms

Vue Component to generate a SVG monogram shape with letters in that resembles your first/last name.

Supports

  • Hexagons (Plain)
  • Hexagons (With internal patterns)
  • Rectangles (Plain or with internal patterns)
  • Circles (Plain or with internal patterns)
  • Octagons (Plain or with internal patterns)

Installation

You can include this plugin into your application by installing this package via yarn

yarn add vue-monograms

Usage

Register the component in your App.vue.

import Monogram from 'vue-monograms';
Vue.component('monogram', Monogram);

You will be able to use this component throughout your application.

<template>
...
<monogram width="80" letters="XB" :primary-color="'#00a8e8'" />
...
</template>

Properties

width

The width attribute is required to calculate the sides and points coordinates of the hexagon, calculated in pixels as a number value.

letters

The letters provide the reference to a name/surname, but can be any string.

primary-color

Primary background color fill for the shape. Identified as a string hex color value ex: '#00a8e8'

Keywords

FAQs

Last updated on 08 Jan 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc