@riot-material/rm-select
TypeScript icon, indicating that this package has built-in type declarations

2.2.3 • Public • Published

select component based on Material Design for riot-material

Installation

You can install it via nodejs

npm install @riot-material/rm-select

or download one of the bundled file

/**
 * `dist/index.amd.js`
 * `dist/index.amd+libs.js`
 * `dist/index.umd.js`
 * `dist/index.umd+libs.js`
 */
requirejs.config({
  paths: {
      "@riot-material/rm-select": "path/to/@riot-material/rm-select",
   },
});

require(['@riot-material/rm-select'], function (SelectComponent) {
    // ...
});

/**
 * `dist/index.js`
 * `dist/index.es.js`
 * npm installation
 */
import SelectComponent from "@riot-material/rm-select";

otherwise you can include the script in your project html

<script src="@riot-material/rm-select/index.umd.js" />
<!-- or -->
<script src="@riot-material/rm-select/index.umd+libs.js" />

and access it via

window.riotMaterial.components.select;

Note: all the bundled file having +libs contain also the dependencies needed by the component, which, in this case, are:
@riot-material/before-focus-listener
@riot-material/ripple
@riot-material/rm-button
@riot-material/rm-menu
@riot-material/rm-textfield-container
Be sure to have them when installing manually or including via html

Readme

Keywords

none

Package Sidebar

Install

npm i @riot-material/rm-select

Weekly Downloads

2

Version

2.2.3

License

MIT

Unpacked Size

1.07 MB

Total Files

18

Last publish

Collaborators

  • kal-aster