npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-ui-kit-teal

v1.0.1

Published

Vue 3 UI components with TypeScript support using ui-kit-scss-teal - buttons, forms, modals, notifications

Readme

Vue UI Kit

Vue 3 компоненты для UI Kit SCSS с TypeScript поддержкой.

Установка

npm install @ui-system/vue-ui-kit

Использование

Полная установка

import { createApp } from 'vue'
import VueUIKit from '@ui-system/vue-ui-kit'
import App from './App.vue'

const app = createApp(App)
app.use(VueUIKit)
app.mount('#app')

Импорт отдельных компонентов

<script setup>
import { UiButton, UiInput, UiModal } from '@ui-system/vue-ui-kit'
</script>

<template>
  <UiButton variant="primary" @click="showModal = true">
    Открыть модалку
  </UiButton>
  
  <UiModal v-model="showModal" title="Заголовок">
    <UiInput 
      v-model="inputValue" 
      label="Имя пользователя"
      placeholder="Введите имя"
    />
  </UiModal>
</template>

Компоненты

UiButton

Кнопка с различными вариантами и состояниями.

<template>
  <!-- Основные варианты -->
  <UiButton variant="primary">Основная</UiButton>
  <UiButton variant="secondary">Вторичная</UiButton>
  <UiButton variant="outline-primary">Контурная</UiButton>
  
  <!-- Размеры -->
  <UiButton size="sm">Маленькая</UiButton>
  <UiButton size="lg">Большая</UiButton>
  
  <!-- Состояния -->
  <UiButton :loading="true">Загрузка...</UiButton>
  <UiButton :disabled="true">Неактивная</UiButton>
  
  <!-- С иконками -->
  <UiButton>
    <template #icon-left>🔍</template>
    Поиск
  </UiButton>
  
  <!-- События -->
  <UiButton @click="handleClick">Кликни меня</UiButton>
</template>

Props:

  • variant: 'primary' | 'secondary' | 'outline-primary' | 'outline-secondary' | 'ghost' | 'success' | 'warning' | 'error'
  • size: 'sm' | 'md' | 'lg' | 'xl'
  • disabled: boolean
  • loading: boolean
  • fullWidth: boolean
  • iconOnly: boolean

UiInput

Поле ввода с поддержкой различных типов и валидации.

<template>
  <!-- Основное использование -->
  <UiInput 
    v-model="value"
    label="Email"
    type="email"
    placeholder="[email protected]"
    help-text="Мы не передаем email третьим лицам"
  />
  
  <!-- С ошибкой -->
  <UiInput 
    v-model="value"
    label="Пароль"
    type="password"
    :error-message="passwordError"
  />
  
  <!-- Многострочный -->
  <UiInput 
    v-model="comment"
    label="Комментарий"
    :multiline="true"
    :rows="4"
  />
  
  <!-- С дополнениями -->
  <UiInput v-model="price" label="Цена">
    <template #prepend>₽</template>
    <template #append>.00</template>
  </UiInput>
</template>

Props:

  • modelValue: string | number
  • type: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search'
  • label: string
  • placeholder: string
  • helpText: string
  • errorMessage: string
  • size: 'sm' | 'md' | 'lg'
  • disabled: boolean
  • readonly: boolean
  • required: boolean
  • multiline: boolean

UiSelect

Выпадающий список с поддержкой объектов и примитивов.

<template>
  <!-- Простые опции -->
  <UiSelect 
    v-model="selectedValue"
    :options="['Вариант 1', 'Вариант 2', 'Вариант 3']"
    label="Выберите вариант"
    placeholder="Выберите..."
  />
  
  <!-- Объекты -->
  <UiSelect 
    v-model="selectedUser"
    :options="users"
    label="Пользователь"
    value-key="id"
    label-key="name"
  />
  
  <!-- Ручные опции -->
  <UiSelect v-model="country" label="Страна">
    <option value="ru">Россия</option>
    <option value="us">США</option>
    <option value="de">Германия</option>
  </UiSelect>
</template>

<script setup>
const users = [
  { id: 1, name: 'Иван Иванов' },
  { id: 2, name: 'Петр Петров' }
]
</script>

UiCheckbox

Чекбокс с поддержкой неопределенного состояния.

<template>
  <UiCheckbox v-model="agreed" label="Согласен с условиями" />
  
  <UiCheckbox v-model="notifications" :indeterminate="partiallySelected">
    Получать уведомления
  </UiCheckbox>
</template>

UiRadio

Радио-кнопка для выбора одного из вариантов.

<template>
  <UiRadio 
    v-model="selectedOption" 
    value="option1"
    name="options"
    label="Первый вариант" 
  />
  
  <UiRadio 
    v-model="selectedOption" 
    value="option2"
    name="options"
    label="Второй вариант" 
  />
</template>

UiModal

Модальное окно с различными размерами и настройками.

<template>
  <!-- Простое модальное окно -->
  <UiModal v-model="showModal" title="Заголовок">
    <p>Содержимое модального окна...</p>
    
    <template #footer>
      <UiButton variant="outline-primary" @click="showModal = false">
        Отмена
      </UiButton>
      <UiButton variant="primary" @click="save">
        Сохранить
      </UiButton>
    </template>
  </UiModal>
  
  <!-- Настраиваемое -->
  <UiModal 
    v-model="showModal"
    size="lg"
    :centered="true"
    :close-on-backdrop="false"
  >
    <template #header>
      <h3>Кастомный заголовок</h3>
    </template>
    
    <!-- Содержимое -->
    
    <template #footer>
      <!-- Кастомный футер -->
    </template>
  </UiModal>
</template>

Props:

  • modelValue: boolean
  • title: string
  • size: 'sm' | 'md' | 'lg' | 'xl' | 'fullscreen'
  • closable: boolean
  • closeOnBackdrop: boolean
  • centered: boolean
  • scrollable: boolean

UiNotification

Компонент уведомлений с автоматическим скрытием.

<template>
  <!-- В шаблоне компонента уведомлений -->
  <UiNotification
    type="success"
    title="Успех!"
    message="Данные сохранены успешно"
    :duration="5000"
  />
  
  <UiNotification
    type="error"
    title="Ошибка"
    message="Не удалось сохранить данные"
    :closable="true"
  />
</template>

Props:

  • type: 'success' | 'error' | 'warning' | 'info'
  • title: string
  • message: string
  • duration: number (в миллисекундах)
  • closable: boolean
  • showIcon: boolean
  • persistent: boolean

Типы TypeScript

Все компоненты экспортируют TypeScript типы:

import type { 
  UiButtonProps, 
  UiInputProps, 
  UiModalProps 
} from '@ui-system/vue-ui-kit'

Стилизация

Компоненты используют классы из @ui-system/ui-kit-scss. Для кастомизации переопределите CSS переменные или SCSS переменные перед импортом стилей.

Лицензия

MIT