0.1.3 • Published 2 years ago

my-ui-set v0.1.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

My UI set

This is a simple set of vue-components for documenting and visualizing the UI-kit of your project.

interface screen

Code expample

<template>
  <div id="app">
    <!-- this need currentCategory prop -->
    <!-- eslint-disable-next-line vue/no-unused-vars -->
    <MyUi v-if="isDevMode" custom-css-properties-container=".my-ui" #default="{ currentCategory }">
      <MyUiCategory name="Buttons">
        <MyUiComponent>
          <MyButton text="Button"></MyButton>
        </MyUiComponent>

        <MyUiComponent name="MyButton loading">
          <MyButton is-loading></MyButton>
        </MyUiComponent>

        <MyUiComponent name="MyButton red">
          <MyButton color="red" text="Warning!!!!"></MyButton>
        </MyUiComponent>
      </MyUiCategory>
    </MyUi>
  </div>
</template>

<script>
import { MyUi, MyUiCategory, MyUiComponent } from 'my-ui-set';
// ...
</script>

Components and props

MyUi

custom-css-properties-container - container selector from which css properties will be taken. By default, shows all custom css properties .

MyUiCategory

name - name of category

MyUiComponent

name - name of component. By default, shows the component's vue tag

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago