Skip to content

descom-es/descom-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Descom Ui Components

Common Vue.js components we use at descom.

## Development

Dev server:

npm run serve

Build:

npm run build

Components

All components will use the props passed to them as if they were html native attributes. Ej.: :disabled="true" will be passed as disabled="true" to the input inside the component.

Button

Example:

<UiButton class="button--primary" :loading="loading" @click="click">
  Click me!
</UiButton>

Input

Example:

<UiInput
  :loading="loading"
  label="This input can't be less than 0"
  type="number"
  v-model="text"
  placeholder="I'm a placeholder!"
  min="0"
/>

Import

import { UiInput, UiButton } from 'descom-ui'
import 'descom-ui/dist/descom-ui.min-default.css'

Note

You may have to set the following env variable to get the package to work:

export NODE_OPTIONS=--openssl-legacy-provider