File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
site/src/components/Badge Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1
1
import type { Meta , StoryObj } from "@storybook/react" ;
2
+ import { Settings , TriangleAlert } from "lucide-react" ;
2
3
import { Badge } from "./Badge" ;
3
4
4
5
const meta : Meta < typeof Badge > = {
@@ -13,3 +14,25 @@ export default meta;
13
14
type Story = StoryObj < typeof Badge > ;
14
15
15
16
export const Default : Story = { } ;
17
+
18
+ export const Warning : Story = {
19
+ args : {
20
+ variant : "warning" ,
21
+ } ,
22
+ } ;
23
+
24
+ export const SmallWithIcon : Story = {
25
+ args : {
26
+ variant : "default" ,
27
+ size : "sm" ,
28
+ children : < > { < Settings /> } Preset</ > ,
29
+ } ,
30
+ } ;
31
+
32
+ export const MediumWithIcon : Story = {
33
+ args : {
34
+ variant : "warning" ,
35
+ size : "md" ,
36
+ children : < > { < TriangleAlert /> } Immutable</ > ,
37
+ } ,
38
+ } ;
You can’t perform that action at this time.
0 commit comments