timcowebapps-react-buttons
TypeScript icon, indicating that this package has built-in type declarations

0.1.2-rc.2 • Public • Published

React-Buttons Discord

dependencies

NPM

Микрокомпонент базовой кнопки.

Установка

$ npm i -S timcowebapps-react-buttons

Настройка webpack

{
    // ...
    resolve: {
        alias: {
            'timcowebapps-react-buttons-dir': path.resolve(__dirname, 'node_modules', 'timcowebapps-react-buttons', 'lib')
        }
    }
    // ...
}

Применение

import Button from 'timcowebapps-react-buttons';
const styles: any = require('timcowebapps-react-buttons-dir/button.scss');
 
<Button schema={{
    properties: {
        tag: "button",
        classes: styles.btn
    }
}}>Button content</Button>
Property Type Default Description
schema any -

Readme

Keywords

Package Sidebar

Install

npm i timcowebapps-react-buttons

Weekly Downloads

4

Version

0.1.2-rc.2

License

MIT

Unpacked Size

2.64 MB

Total Files

13

Last publish

Collaborators

  • victor-timoshin