@telia/styleguide
Version:
This is a living styleguide, showing the Atomic Design components which should be used in Telia Norway's web applications to achieve a common look & feel, and therefore user experience.
23 lines (20 loc) • 569 B
JavaScript
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import React from 'react';
import classnames from 'classnames';
/**
* Status: *finished*
*/
const InputError = (_ref) => {
let {
className,
children
} = _ref,
rest = _objectWithoutProperties(_ref, ["className", "children"]);
return React.createElement("span", _extends({
className: classnames('input-error', {
[className]: className
})
}, rest), children);
};
export default InputError;