0.4.24 • Published 5 years ago

@megalabs/react-button v0.4.24

Weekly downloads
-
License
-
Repository
-
Last release
5 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

5 years ago

0.4.20

5 years ago

0.4.18

5 years ago

0.4.16

5 years ago

0.4.15

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.2.26

6 years ago

0.2.25

6 years ago

0.2.24

6 years ago

0.2.23

6 years ago

0.2.20

6 years ago

0.2.17

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.18

6 years ago