-
Notifications
You must be signed in to change notification settings - Fork 0
/
Button.jsx
36 lines (31 loc) · 1.42 KB
/
Button.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React from 'react';
import PropTypes from 'prop-types';
import { Button as ButtonM } from 'react-bootstrap';
/**
* @uxpindocurl https://react-bootstrap.github.io/docs/components/Button
* @uxpindescription TODO
*/
const Button = (props) => {
return <ButtonM {...props} />;
};
Button.propTypes = {
children: PropTypes.node,
/** One or more button variant combinationsbuttons may be one of a variety of visual variants such as:`'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', 'link'`as well as "outline" versions (prefixed by 'outline-*')`'outline-primary', 'outline-secondary', 'outline-success', 'outline-danger', 'outline-warning', 'outline-info', 'outline-dark', 'outline-light'` */
variant: PropTypes.string,
/** Manually set the visual state of the button to `:active` */
active: PropTypes.bool,
/** Disables the Button, preventing mouse events,even if the underlying component is an `<a>` element */
disabled: PropTypes.bool,
/** @default 'btn' */
bsPrefix: PropTypes.string,
/** Callback fired when the button is clicked. */
onClick: PropTypes.func,
/** Specifies a large or small button.@type ('sm'|'lg') */
size: PropTypes.string,
/** Providing a `href` will render an `<a>` element, _styled_ as a button. */
href: PropTypes.string,
/** Defines HTML button type attribute.@default 'button' */
type: PropTypes.string,
as: PropTypes.string,
};
export default Button;