0.4.24 • Published 6 years ago

@megalabs/react-button v0.4.24

Weekly downloads
-
License
-
Repository
-
Last release
6 years ago

Компонент кнопка

Установка

npm i @megalabs/react-button

Параметры

propNamepropTypedefaultValueisRequiredDescription
typeStringbuttonОпределяет тип кнопки.
hrefStringДелает из кнопки простую ссылку
fullWidthBooleanfalse100% ширины

Параметр type принимает след. значения:

  • outline
  • cta
  • button

Пример использования

import React, { Component } from 'react';
import {Button} from '@megalabs/react-button';

class App extends Component {
  render() {
    return (
      <div className="App">
						<Button type="outline">Clik me!</Button>
						<Button type="cta">Clik me!</Button>
						<Button type="button">Clik me!</Button>
						<Button href="https://megafon.ru">Clik me!</Button>
      </div>
    );
  }
}

export default App;
0.4.24

6 years ago

0.4.20

6 years ago

0.4.18

6 years ago

0.4.16

7 years ago

0.4.15

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.2.26

7 years ago

0.2.25

7 years ago

0.2.24

7 years ago

0.2.23

7 years ago

0.2.20

7 years ago

0.2.17

7 years ago

0.1.20

7 years ago

0.1.19

7 years ago

0.1.18

7 years ago