--------- Co-authored-by: soulless-ai <mr.chupak@gmail.com> Co-authored-by: Vitaly Turovsky <vital2580@icloud.com>
18 lines
441 B
TypeScript
18 lines
441 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react'
|
|
|
|
import MessageFormattedString from './MessageFormattedString'
|
|
|
|
const meta: Meta<typeof MessageFormattedString> = {
|
|
component: MessageFormattedString,
|
|
}
|
|
|
|
export default meta
|
|
type Story = StoryObj<typeof MessageFormattedString>
|
|
|
|
export const Primary: Story = {
|
|
args: {
|
|
// red text using minecraft styling symbol
|
|
message: '\u00A7cYou died!',
|
|
fallbackColor: 'white'
|
|
},
|
|
}
|