-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update docs Gallery,Gap,Grid (#876)
- Loading branch information
1 parent
30281bb
commit d29aa43
Showing
18 changed files
with
654 additions
and
501 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Meta, Markdown } from '@storybook/addon-docs'; | ||
import { ComponentHeader, Tabs } from 'storybook/blocks'; | ||
import * as Stories from './Component.stories'; | ||
|
||
import Description from './description.mdx'; | ||
import Development from './development.mdx'; | ||
import Changelog from '../../CHANGELOG.md?raw'; | ||
import packageJson from '../../package.json'; | ||
|
||
<Meta of={Stories} /> | ||
|
||
<ComponentHeader | ||
name='Gallery' | ||
version={packageJson.version} | ||
children='Используется для просмотра изображений.' | ||
/> | ||
|
||
<Tabs | ||
description={<Description />} | ||
changelog={<Markdown>{Changelog}</Markdown>} | ||
development={<Development />} | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ArgsTable } from '@storybook/addon-docs'; | ||
import { Plate } from '@alfalab/core-components/plate'; | ||
import { Gallery } from '../index'; | ||
|
||
## Подключение | ||
|
||
```jsx | ||
import { Gallery } from '@alfalab/core-components/gallery'; | ||
``` | ||
|
||
## Использование | ||
|
||
<Plate | ||
view='attention' | ||
limitContentWidth={false} | ||
title='Чтобы скачивание изображений работало корректно, убедитесь, что в ответе от сервера выставлен заголовок content-disposition: attachment' | ||
titleView='light' | ||
/> | ||
|
||
## Свойства | ||
|
||
<ArgsTable of={Gallery} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Meta, Markdown } from '@storybook/addon-docs'; | ||
import { ComponentHeader, Tabs } from 'storybook/blocks'; | ||
import * as Stories from './Component.stories'; | ||
|
||
import Description from './description.mdx'; | ||
import Development from './development.mdx'; | ||
import Changelog from '../../CHANGELOG.md?raw'; | ||
import packageJson from '../../package.json'; | ||
|
||
<Meta of={Stories} /> | ||
|
||
<ComponentHeader | ||
name='Gap' | ||
version={packageJson.version} | ||
children='Используется для создания отступов между блоками.' | ||
/> | ||
|
||
<Tabs | ||
description={<Description />} | ||
changelog={<Markdown>{Changelog}</Markdown>} | ||
development={<Development />} | ||
/> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.