UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

23 lines (20 loc) 1.1 kB
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 } = _a, props = __rest(_a, ["buttonStyle", "children", "raised", "iconed", "fab", "bordered"]); return (React__default.createElement(Button$1, Object.assign({ ref: ref, buttonStyle: buttonStyle, raised: raised, iconed: iconed, fab: fab, bordered: bordered }, props), children)); }); export default Button; export { Button };