Skip to content

Commit

Permalink
docs: dropdownHelpMessageを選択式にする
Browse files Browse the repository at this point in the history
  • Loading branch information
misako0927 committed Dec 10, 2024
1 parent 20bc809 commit 0b6d0bb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import React, { useState } from 'react'

import { FaCirclePlusIcon } from '../../../Icon'
import { Stack } from '../../../Layout'
import { Text } from '../../../Text'
import { SingleComboBox } from '../SingleComboBox'

// eslint-disable-next-line storybook/prefer-pascal-case
Expand Down Expand Up @@ -104,6 +105,14 @@ export default {
options: Object.keys(prefixes),
mapping: prefixes,
},
dropdownHelpMessage: {
control: { type: 'select' },
options: ['文字列', 'ReactNode'],
mapping: {
文字列: 'ヘルプメッセージ',
ReactNode: <Text className="shr-text-danger">React Nodeを渡したメッセージ</Text>,
},
},
},
parameters: {
chromatic: { disableSnapshot: true },
Expand Down

0 comments on commit 0b6d0bb

Please sign in to comment.