/
githubmirror
/
Open-Assistant
Обзор
Документация
Войти
/
githubmirror
/
Open-Assistant
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
website/src/components/Loading/Loading.stories.tsx
19 строк
527 B
Eng Zer Jun
refactor(website): convert Header and Loading stories to TypeScript (#2050)
13 мар 2023, 00:38
Не верифицирован
13 мар 2023, 00:38
26fec63
Код
Авторство
О чём код?
import type { ComponentStory } from "@storybook/react"; import { LoadingScreen } from "./LoadingScreen"; // eslint-disable-next-line import/no-anonymous-default-export export default { title: "Example/LoadingScreen", component: LoadingScreen, parameters: { layout: "fullscreen", }, }; const Template: ComponentStory<typeof LoadingScreen> = (args) => <LoadingScreen {...args} />; export const Default = Template.bind({}); export const WithText = Template.bind({}); WithText.args = { text: "Loading Text ..." };