mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 22:34:01 -05:00
Added experimental section in Shade (#21875)
ref https://linear.app/ghost/issue/DES-1033/icon-implementation The Storybook structure contained Lucide icons under "Components", but it's an experimental component. This commit creates an Experimental component group in Shade and updates the corresponding docs.
This commit is contained in:
parent
2f671eca69
commit
e2fad8bcb5
4 changed files with 5 additions and 5 deletions
|
@ -59,7 +59,7 @@ const preview: Preview = {
|
|||
options: {
|
||||
storySort: {
|
||||
method: 'alphabetical',
|
||||
order: ['Welcome', 'Adding components', 'Component usage', 'Conventions', 'Icons', 'Global', ['Form', 'Chrome', 'Modal', 'Layout', ['View Container', 'Page Header', 'Page'], 'List', 'Table', '*'], 'Settings', ['Setting Section', 'Setting Group', '*'], 'Experimental'],
|
||||
order: ['Welcome', 'Adding components', 'Component usage', 'Conventions', 'Icons', 'Components', 'Meta', 'Experimental'],
|
||||
},
|
||||
},
|
||||
docs: {
|
||||
|
|
|
@ -3,7 +3,7 @@ import type {Meta, StoryObj} from '@storybook/react';
|
|||
import {useState} from 'react';
|
||||
|
||||
const meta = {
|
||||
title: 'Components / Streamline icons',
|
||||
title: 'Components / Icons',
|
||||
component: Icon.Close,
|
||||
tags: ['autodocs'],
|
||||
argTypes: {
|
||||
|
|
|
@ -3,7 +3,7 @@ import type {Meta, StoryObj} from '@storybook/react';
|
|||
import {Smile} from 'lucide-react';
|
||||
|
||||
const meta = {
|
||||
title: 'Components / Lucide icons',
|
||||
title: 'Experimental / Lucide icons',
|
||||
component: Smile,
|
||||
tags: ['autodocs'],
|
||||
parameters: {
|
||||
|
|
|
@ -12,9 +12,9 @@ In Shade we use Streamline icons. They are dynamically loaded from the `src/asse
|
|||
<Icon.IconName size="md" />
|
||||
```
|
||||
|
||||
If you check out the [Icons](/docs/components-streamline-icons--docs) component here in Storybook, you'll see a grid of all available icons in Shade. This list is dynamically loaded and if you click on an icon then the component code will be copied to your clipboard.
|
||||
If you check out the [Icons](/docs/components-icons--docs) component here in Storybook, you'll see a grid of all available icons in Shade. This list is dynamically loaded and if you click on an icon then the component code will be copied to your clipboard.
|
||||
|
||||
<a href="/?path=/docs/components-streamline-icons--docs" className="button">Streamline icons in Shade →</a>
|
||||
<a href="/?path=/docs/components-icons--docs" className="button">Streamline icons in Shade →</a>
|
||||
|
||||
|
||||
## Adding icons
|
||||
|
|
Loading…
Reference in a new issue