@haraldlons/reactjs-tag-input
Version:
A simple (but fully customizable) react tag input component built using styled components.
13 lines (9 loc) • 588 B
JavaScript
var _templateObject = _taggedTemplateLiteral(['\n color: white;\n font-size: 1em;\n &:hover {\n color: gray;\n }\n'], ['\n color: white;\n font-size: 1em;\n &:hover {\n color: gray;\n }\n']);
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
import styled from 'styled-components';
var TagDelete = styled.span.attrs(function (props) {
return {
'data-test': 'tag-delete-' + props.index
};
})(_templateObject);
export default TagDelete;