@yandex/ui
Version:
Yandex UI components
13 lines (12 loc) • 607 B
JavaScript
import { __read } from "tslib";
import React, { useState } from 'react';
import { RadioButton } from '@yandex-lego/components/RadioButton/desktop/bundle';
export var View = function () {
var _a = __read(useState('a'), 2), value = _a[0], setValue = _a[1];
var options = [
{ value: 'a', children: 'Option A' },
{ value: 'b', children: 'Option B' },
{ value: 'c', children: 'Option C' },
];
return (React.createElement(RadioButton, { size: "m", view: "default", value: value, options: options, onChange: function (event) { return setValue(event.target.value); } }));
};