UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

14 lines 463 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createOption = void 0; const createOption = ({ value, label, selected }) => { const optionElement = document.createElement('option'); optionElement.value = value; optionElement.text = label; if (selected) { optionElement.selected = selected; } return optionElement; }; exports.createOption = createOption; //# sourceMappingURL=createOption.js.map