0.2.0 • Published 3 years ago

@sapphirecode/ui-modules v0.2.0

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

ui-modules

version: 0.2.0

preset vue components

Installation

npm:

npm i --save ui-modules

yarn:

yarn add ui-modules

Usage

simply import the the components you need

import {Button, Login} from '@sapphirecode/ui-components'

... vue code

Button

A simple button component

properties:

  • content (String): text to display in the button

events:

  • click: fired when the button is clicked

You can also define custom content by adding it as child elements to the button. This will only be displayed if the content property is not provided.

Login

Simple login form with username and password

properties:

  • user_label (String): Text to display above the username field. default: 'Name / Email'
  • password_label (String): Text to display above the password field. default: 'Password'
  • login_label (String): Text to display in the login button. default: 'Login'

events:

  • login: fired when the login button is pressed. payload: { username: String, password: String }

Other components and Theming

... still experimental, documentation will come once there is a steady structure

License

MIT © Timo Hocker