@@ -6,6 +6,8 @@ import React from 'react';
66const InfoIcon = ( ) => {
77 return ( < svg width = "18" height = "18" viewBox = "0 0 15 15" fill = "none" xmlns = "http://www.w3.org/2000/svg" > < path d = "M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z" fill = "currentColor" fillRule = "evenodd" clipRule = "evenodd" > </ path > </ svg > ) ;
88} ;
9+ const Variants = [ 'soft' , 'outline' ] ;
10+ const Sizes = [ 'small' , 'medium' , 'large' , 'x-large' ] ;
911
1012// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
1113export default {
@@ -53,3 +55,43 @@ const RedTextTemplate = (args: any) => {
5355 </ SandboxEditor > ;
5456} ;
5557export const RedText = RedTextTemplate . bind ( ) ;
58+
59+ export const Size = ( ) => {
60+ return < SandboxEditor >
61+ < div className = 'mt-4 mb-2' >
62+ < p className = 'text-gray-950' > Callout Size</ p >
63+ </ div >
64+ < div >
65+
66+ { Variants . map ( ( variant , index ) => (
67+ < div key = { index } className = 'mb-10' >
68+ < span key = { index } className = "inline-flex items-start space-x-2" >
69+ { Sizes . map ( ( size , index ) => {
70+ return < Callout key = { index } size = { size } variant = { variant } >
71+ < InfoIcon /> < span > This is a Callout</ span >
72+ </ Callout > ;
73+ } ) }
74+ </ span >
75+ </ div >
76+ ) ) }
77+
78+ </ div >
79+ </ SandboxEditor > ;
80+ } ;
81+
82+ export const Variant = ( ) => {
83+ return < SandboxEditor >
84+ < div className = 'mt-4 mb-2' >
85+ < p className = 'text-gray-950' > Callout Variant</ p >
86+ </ div >
87+ < div className = 'flex space-x-2' >
88+
89+ { Variants . map ( ( variant , index ) => {
90+ return < Callout key = { index } variant = { variant } >
91+ < InfoIcon /> < span > This is a Callout</ span >
92+ </ Callout > ;
93+ } ) }
94+
95+ </ div >
96+ </ SandboxEditor > ;
97+ } ;
0 commit comments