UNPKG

@yandex/ui

Version:

Yandex UI components

8 lines (7 loc) 426 B
import { __read } from "tslib"; import React, { useState } from 'react'; import { Checkbox } from '@yandex-lego/components/Checkbox/desktop/bundle'; export var View = function () { var _a = __read(useState(false), 2), checked = _a[0], setChecked = _a[1]; return React.createElement(Checkbox, { size: "m", view: "default", label: "Label", onChange: function () { return setChecked(!checked); }, checked: checked }); };