UNPKG

@yandex/ui

Version:

Yandex UI components

15 lines (14 loc) 713 B
import React from 'react'; import { select, boolean, text } from '@storybook/addon-knobs'; import { Link } from '@yandex-lego/components/Link/desktop/bundle'; export var Playground = function () { var children = text('children', 'Yandex'); var href = text('href', 'https://yandex.ru'); var view = select('view', ['default', ''], 'default'); var theme = view === '' ? select('theme', ['black', 'ghost', 'normal', 'outer', 'pseudo', 'strong'], 'normal') : null; var pseudo = boolean('pseudo', false); var disabled = boolean('disabled', false); return (React.createElement(Link, { href: href, view: view, theme: theme, pseudo: pseudo, disabled: disabled }, children)); };