UNPKG

@yandex/ui

Version:

Yandex UI components

19 lines (18 loc) 818 B
import { __read } from "tslib"; import React, { useState } from 'react'; import { Select } from '@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: 'Фазан' }, ]; export var Icon = function () { var _a = __read(useState('a'), 2), value = _a[0], setValue = _a[1]; return (React.createElement(Select, { view: "default", size: "m", value: value, onChange: function (event) { return setValue(event.target.value); }, options: options, iconProps: { type: 'arrow', } })); };