GithubHelp home page GithubHelp logo

biancode / vue-monograms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from etiennemarais/vue-monograms

0.0 1.0 0.0 1.17 MB

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

Home Page: https://etiennemarais.github.io/vue-monograms/

JavaScript 4.24% HTML 8.24% Vue 54.44% SCSS 33.08%

vue-monograms's Introduction

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'

vue-monograms's People

Contributors

dependabot[bot] avatar etiennemarais avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.