@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
21 lines • 797 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
const _excluded = ["value", "className"];
import React from 'react';
import classnames from 'classnames';
import ValueBlock from '../../ValueBlock';
import { useValueProps } from '../../hooks';
function StringComponent(props) {
const _useValueProps = useValueProps(props),
{
value,
className
} = _useValueProps,
rest = _objectWithoutProperties(_useValueProps, _excluded);
return React.createElement(ValueBlock, _extends({
className: classnames('dnb-forms-value-string', className)
}, rest), value);
}
StringComponent._supportsSpacingProps = true;
export default StringComponent;
//# sourceMappingURL=String.js.map