@yandex/ui
Version:
Yandex UI components
23 lines (22 loc) • 981 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Icon = void 0;
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importStar(require("react"));
var bundle_1 = require("@yandex-lego/components/Select/desktop/bundle");
var options = [
{ value: 'a', content: 'Каждый' },
{ value: 'b', content: 'Охотник' },
{ value: 'c', content: 'Желает' },
{ value: 'd', content: 'Знать' },
{ value: 'e', content: 'Где', disabled: true },
{ value: 'f', content: 'Сидит' },
{ value: 'g', content: 'Фазан' },
];
var Icon = function () {
var _a = tslib_1.__read(react_1.useState('a'), 2), value = _a[0], setValue = _a[1];
return (react_1.default.createElement(bundle_1.Select, { view: "default", size: "m", value: value, onChange: function (event) { return setValue(event.target.value); }, options: options, iconProps: {
type: 'arrow',
} }));
};
exports.Icon = Icon;