@gechiui/components
Version:
UI components for GeChiUI.
39 lines (37 loc) • 920 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import { createElement } from "@gechiui/element";
/**
* GeChiUI dependencies
*/
import { memo } from '@gechiui/element';
/**
* Internal dependencies
*/
import PickerCell from '../mobile/bottom-sheet/picker-cell';
const SelectControl = memo(_ref => {
let {
help,
instanceId,
label,
multiple = false,
onChange,
options = [],
className,
hideLabelFromVision,
...props
} = _ref;
const id = `inspector-select-control-${instanceId}`;
return createElement(PickerCell, _extends({
label: label,
hideLabelFromVision: hideLabelFromVision,
id: id,
help: help,
className: className,
onChangeValue: onChange,
"aria-describedby": !!help ? `${id}__help` : undefined,
multiple: multiple,
options: options
}, props));
});
export default SelectControl;
//# sourceMappingURL=index.native.js.map