File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
packages/components/src/components/Section Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export const SectionHeader: FC<SectionHeaderProps> = (props) => {
2323 size : "s" ,
2424 tunnelId : "actions" ,
2525 } ,
26+ FileField : { tunnelId : "actions" , Button : { size : "s" } } ,
2627 ContextMenuTrigger : {
2728 tunnelId : "actions" ,
2829 Button : {
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import {
2424import ContextMenuTrigger from "@/components/ContextMenu/components/ContextMenuTrigger" ;
2525import { ContextMenu } from "@/components/ContextMenu" ;
2626import MenuItem from "@/components/MenuItem" ;
27+ import { FileField } from "@/components/FileField" ;
2728
2829const meta : Meta < typeof Section > = {
2930 title : "Structure/Section" ,
@@ -195,3 +196,20 @@ export const HideSeperator: Story = {
195196 </ >
196197 ) ,
197198} ;
199+
200+ export const WithFileField : Story = {
201+ render : ( props ) => (
202+ < >
203+ < Section { ...props } hideSeparator >
204+ < Header >
205+ < Heading > Domains</ Heading >
206+ < FileField >
207+ < Button > Import CSV</ Button >
208+ </ FileField >
209+ < Button > Add</ Button >
210+ </ Header >
211+ < Text > Add at least one domain.</ Text >
212+ </ Section >
213+ </ >
214+ ) ,
215+ } ;
You can’t perform that action at this time.
0 commit comments