ux-select
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

UX Select

Free and lightweight native(vanilla) JavaScript plugin that replace native select elements with customization.

Status

npm jsDelivr hits (npm scoped) Static Badge GitHub Workflow Status (with event) GitHub Workflow Status (with event)

Installation

ES-module

npm i ux-select --save

Non ES-module

Install plugin files from dist directory;

  • css/ux-select.min.css
  • js/ux-select.iife.js

Usage

ES-module

import UxSelect from 'ux-select/dist/js/ux-select.es.js';

Non ES-module

Add styles and script to project

<link rel="stylesheet" href="path/to/ux-select.min.css" type="text/css" />
<script src="path/to/ux-select.iife.js"></script>

Initialize ux-select in .js file

const myUxSelect = new UxSelect(element, params);

Style customization

You can customize styles by replace CSS-variables what contain "--uxs" prefix and placed on :root.

Documentation

More details on ux-select.com.

License

UX Select is licensed by MIT

It can be used for free and without any attribution, in any personal or commercial project.

Package Sidebar

Install

npm i ux-select

Weekly Downloads

71

Version

2.2.0

License

MIT

Unpacked Size

122 kB

Total Files

18

Last publish

Collaborators

  • afonchenkov.dmitrii