Raw
1 import type { Meta, StoryObj } from "@storybook/react"
2 import { Hint } from "./hint"
3
4 const meta: Meta<typeof Hint> = {
5 title: "Components/Hint",
6 component: Hint,
7 parameters: {
8 layout: "centered",
9 },
10 }
11
12 export default meta
13
14 type Story = StoryObj<typeof Hint>
15
16 export const Info: Story = {
17 args: {
18 children: "This is a hint text to help user.",
19 },
20 }
21
22 export const Error: Story = {
23 args: {
24 variant: "error",
25 children: "This is a hint text to help user.",
26 },
27 }