Skip to content

Commit

Permalink
fix: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Niznikr committed Oct 7, 2024
1 parent a889052 commit 466ef6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/box/src/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ interface BoxProps extends Sprinkles, Omit<HTMLAttributes<HTMLDivElement>, 'colo
asChild?: boolean;
}

const Box = ({ asChild, children, className: classes, ...props }: BoxProps) => {
const Box = ({ asChild, children, className, ...props }: BoxProps) => {
const Component = asChild ? Slot : 'div';
const { className, style, otherProps } = rainbowSprinkles(props);
const { className: classes, style, otherProps } = rainbowSprinkles(props);

return (
<Component className={cx(classes, className)} style={style} {...otherProps}>
<Component className={cx(className, classes)} style={style} {...otherProps}>
{children}
</Component>
);
Expand Down

0 comments on commit 466ef6e

Please sign in to comment.