react-input-pin-code
Version:
Pin input built with React component and styled-components
11 lines (9 loc) • 336 B
JavaScript
const isCssVariable = (value) => (typeof value === 'string' && value.startsWith('--'));
const setElementCssVariable = ({ element, name, value, }) => {
if (!isCssVariable(name)) {
return;
}
element.style.setProperty(name, value);
};
export { isCssVariable, setElementCssVariable };
//# sourceMappingURL=index.js.map