jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
23 lines (20 loc) • 1.13 kB
JavaScript
import { __rest } from '../../../../../node_modules/tslib/tslib.es6.js';
import React__default from 'react';
import { Button as Button$1 } from './styles.js';
/**
* @file index.tsx
*
* @fileoverview Button component. Renders a button component styled according
* to theme properties.
*/
/**
* A button component can be used whenever an action has to be performed either on a form or other places.
* Do not use buttons for links as for links we should always use <a> tags for proper link semantics. Buttons can have multiple styles applied to them as seen in the
* buttonStyle prop.
*/
const Button = React__default.forwardRef((_a, ref) => {
var { buttonStyle, children = null, raised = true, iconed = false, fab = false, bordered = false, tag = 'button' } = _a, props = __rest(_a, ["buttonStyle", "children", "raised", "iconed", "fab", "bordered", "tag"]);
return (React__default.createElement(Button$1, Object.assign({ as: tag, ref: ref, buttonStyle: buttonStyle, raised: raised, iconed: iconed, fab: fab, bordered: bordered }, props), children));
});
export default Button;
export { Button };