UNPKG

@s-ui/react-atom-input

Version:

> Inputs are the text fields that users fill in with different types of information. These include dates, passwords or even short answers. It’s a field where users can write alphanumeric texts.

21 lines 644 B
import PropTypes from 'prop-types'; import { BASE_CLASS_BUTTON } from './config.js'; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; var InputButton = function InputButton(_ref) { var button = _ref.button, children = _ref.children; if (button === undefined) { return children; } return /*#__PURE__*/_jsxs("div", { className: BASE_CLASS_BUTTON, children: [/*#__PURE__*/_jsx("div", { className: BASE_CLASS_BUTTON + "-input", children: children }), /*#__PURE__*/_jsx("div", { className: BASE_CLASS_BUTTON + "-button", children: button })] }); }; export default InputButton;