2.10.3 ā€¢ Published 3 months ago

@ovchinnikov-lxs-frontend/ui-kit v2.10.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

UI-kit for my vue 3 projects

Versions Downloads

Install

npm i @ovchinnikov-lxs-frontend/ui-kit

Example of usage:

  1. Import default ui-kit css styles
    _bundle.sccs
    @import "@ovchinnikov-lxs-frontend/ui-kit/dist/ui-kit.css";
    or main.ts
    import '@ovchinnikov-lxs-frontend/ui-kit/dist/ui-kit.css';
  2. Create a component in your project and add styles from your style guide based on the component props
    components/ui/UiButton/UiButton.vue
    <script setup lang="ts">
    // Components
    import { UiButton } from '@ovchinnikov-lxs-frontend/ui-kit';
    </script>
    
    <template>
        <UiButton v-bind="$attrs">
            <slot></slot>
        </UiButton>
    </template>
    
    <style lang="scss">
    .UiButton {
        &.--large-size {
            padding: 16px 32px;
            font-size: 24px;
        }
        
        &.--red-color {
            background: red;
            color: white;
        }
    }
    </style>
  3. Use in project

    components/YourComponent.vue

    
    <script setup lang="ts">
    import UiButton from '~/components/ui/UiButton/UiButton.vue';
    </script>
    
    <template>
        <form>
            ....
            <UiButton size="large" color="red">submit</UiButton>
        </form>
    </template>

List of the components

šŸ›  - in progress
šŸš§ - experimental

Develop

Install dependencies

npm install 

Storybook

npm run storybook

Lint

Check eslint and stylelint

npm run lint:check

Fix eslint and stylelint

npm run lint:fix 

Unit tests

npm run test
2.10.3

3 months ago

2.10.1

9 months ago

2.10.2

8 months ago

2.10.0

9 months ago

2.8.3

1 year ago

2.9.1

12 months ago

2.8.2

1 year ago

2.8.4

12 months ago

2.9.0

12 months ago

2.7.0

1 year ago

2.6.0

1 year ago

2.8.1

1 year ago

2.8.0

1 year ago

2.5.0

1 year ago

2.4.4

1 year ago

2.4.3

1 year ago