feat: add id prop in story

This commit is contained in:
p-sw 2024-06-03 19:54:41 +09:00
parent 8c1aa0607c
commit e3086340c1

View File

@ -12,8 +12,9 @@ const Story = React.forwardRef<
layout?: keyof typeof layoutClasses; layout?: keyof typeof layoutClasses;
children: React.ReactNode; children: React.ReactNode;
className?: string; className?: string;
id?: string;
} }
>(({ layout = "default", children, className }, ref) => { >(({ layout = "default", children, className, id }, ref) => {
return ( return (
<div <div
className={twMerge( className={twMerge(
@ -21,6 +22,7 @@ const Story = React.forwardRef<
className className
)} )}
ref={ref} ref={ref}
id={id}
> >
{children} {children}
</div> </div>