-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(SideMenu): update storybook sample
- Loading branch information
Showing
1 changed file
with
18 additions
and
18 deletions.
There are no files selected for viewing
36 changes: 18 additions & 18 deletions
36
packages/smarthr-ui/src/components/Experimental/SideMenu/SideMenu.stories.tsx
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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
import { StoryFn } from '@storybook/react' | ||
import React from 'react' | ||
|
||
import { SideMenu } from './SideMenu' | ||
import { FaGearIcon } from '../../Icon' | ||
|
||
import { SideMenu, SideMenuGroup, SideMenuItem } from '.' | ||
|
||
export default { | ||
title: 'Experimental(実験的)/SideMenu', | ||
component: SideMenu, | ||
parameters: { | ||
layout: 'fullscreen', | ||
withTheming: true, | ||
}, | ||
} | ||
|
||
export const Default: StoryFn = () => ( | ||
<div className="shr-bg-background shr-p-2"> | ||
<div className="shr-bg-background shr-p-2 shr-max-w-[15rem]"> | ||
<SideMenu> | ||
<SideMenu.Group name="基本設定"> | ||
<SideMenu.Item href="#">評価シート</SideMenu.Item> | ||
<SideMenu.Item href="#" current> | ||
評価ロール | ||
</SideMenu.Item> | ||
<SideMenu.Item href="#">評価フロー</SideMenu.Item> | ||
</SideMenu.Group> | ||
<SideMenu.Group name="その他の設定"> | ||
<SideMenu.Item href="#">評価項目の入力必須設定</SideMenu.Item> | ||
<SideMenu.Item href="#">評価ロールの閲覧・編集権限設定</SideMenu.Item> | ||
<SideMenu.Item href="#">評価対象者の表示項目設定</SideMenu.Item> | ||
</SideMenu.Group> | ||
<SideMenuGroup title="個人設定"> | ||
<SideMenuItem href="#">アカウント</SideMenuItem> | ||
<SideMenuItem href="#" current> | ||
認証設定 | ||
</SideMenuItem> | ||
</SideMenuGroup> | ||
<SideMenuGroup title="共通設定"> | ||
<SideMenuItem href="#" prefix={<FaGearIcon />}> | ||
評価項目の表示設定 | ||
</SideMenuItem> | ||
<SideMenuItem href="#" prefix={<FaGearIcon />}> | ||
評価対象者の入力必須項目設定 | ||
</SideMenuItem> | ||
</SideMenuGroup> | ||
</SideMenu> | ||
</div> | ||
) |