UNPKG

@yandex/ui

Version:

Yandex UI components

13 lines (12 loc) 699 B
import { __read } from "tslib"; import React, { useState } from 'react'; import { Checkbox } from '@yandex-lego/components/Checkbox/desktop/bundle'; export var Theme = function () { var _a = __read(useState(false), 2), checked = _a[0], setChecked = _a[1]; return (React.createElement(React.Fragment, null, ['normal', 'pseudo'].map(function (theme) { return (React.createElement("div", { key: theme, style: { padding: 4, border: 'dashed #b0b0af 1px', background: 'grey', } }, React.createElement(Checkbox, { label: "checkbox", theme: theme, size: "m", onChange: function () { return setChecked(!checked); }, checked: checked }))); }))); };