0.0.9 • Published 3 years ago

r-simple-select v0.0.9

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

React-simple-select

A simple and reusable Select component for React

This component is created by create-component-lib

Installation

The package can be installed via npm:

npm install r-simple-select --save

Or via yarn:

yarn add r-simple-select

Usage

The most basic use of the RsSelect can be described with:

import React from "react";
import RsSelect from "rs-select";

const Example = () => {
    const options = ["First", "Second", {name: "Third", abbreviation: "3rd" }]
    return (
        <RsSelect
            name={name} //id and name of select component
            options={options} //Array or Array of Objects
            title={title} //label's innerText
        />
    );
};

Minimum Usage

The minimum use of the RsSelect:

<RsSelect name={name} options={options} />

In this case the title will be set with the name parameter

License

Licensed under MIT license, see LICENSE for the full license.

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago