wix-style-react
Version:
wix-style-react
42 lines (38 loc) • 957 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import Input from 'wix-style-react/Input';
var style = {
display: 'inline-block',
padding: '0 5px',
width: '200px',
lineHeight: '22px'
};
var Example = function Example(_ref) {
var theme = _ref.theme;
return React.createElement(
'div',
null,
React.createElement(
'div',
{ style: style },
'Left to right',
React.createElement(Input, { theme: theme, status: 'error' })
),
React.createElement(
'div',
{ className: 'rtl', style: style },
'Right to left',
React.createElement(Input, { theme: theme, rtl: true, status: 'error' })
),
React.createElement(
'div',
{ style: style },
'Error with tooltip',
React.createElement(Input, { theme: theme, status: 'error', statusMessage: 'I am a message' })
)
);
};
Example.propTypes = {
theme: PropTypes.string
};
export default Example;