Skip to content

Latest commit

 

History

History

Label

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

This label is amazing, use it responsibly.

Examples

Color

<div class="theme--light">
  <Label>Default</Label>
  <br />
  <Label color="primary">Primary</Label>
  <br />
  <Label color="secondary">Secondary</Label>
  <br />
  <Label color="error">Error</Label>
</div>

Typography

<div class="theme--light">
  <Label color="primary" typography="title">Title</Label>
  <br />
  <Label color="primary" typography="subtitle">Subtitle</Label>
  <br />
  <Label color="primary" typography="caption">Caption</Label>
</div>

How to use

You can use this label as in this example.

<template>
  <div class="theme--light">
    <div class="wrapper">
      <Label typography="title">{{ title }}</Label>
      <br />
      <Label typography="caption">{{ caption }}</Label>
    </div>
    <div class="wrapper">
      <Label typography="subtitle">{{ subtitle }}</Label>
      <br />
      <Label>{{ text }}</Label>
    </div>
  </div>
</template>
<script>
export default {
	data: () => ({
    title: 'This is a title',
    caption: 'and this a caption!',
    subtitle: 'This is a subtitle',
    text: 'and this is a simple text!'
  })
}
</script>
<style>
.wrapper {
  margin: 10px;
}
</style>