feat: add id prop in story
This commit is contained in:
parent
8c1aa0607c
commit
e3086340c1
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user