Skip to content

Commit

Permalink
npm publish (0.0.214)
Browse files Browse the repository at this point in the history
  • Loading branch information
baegofda committed Apr 22, 2024
1 parent 7b08c54 commit 620fa8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bbodek-ui",
"version": "0.0.212",
"version": "0.0.214",
"type": "module",
"author": "Bbodek",
"license": "MIT",
Expand Down
5 changes: 3 additions & 2 deletions src/core/components/Button/ButtonIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import clsx from "clsx";
import ButtonBase from "../ButtonBase";
import { ROUNDED } from "../ButtonBase/constants";
import { BUTTON_SIZE } from "./constants";
import { ButtonIconProps } from "./types";

const ButtonIcon = ({ icon, isCircle = false, ...props }: ButtonIconProps) => {
const { rounded, size, ...rest } = props;
const { rounded, size, className, ...rest } = props;

return (
<ButtonBase className = {BUTTON_SIZE[size]} size = {size} rounded = {!isCircle ? rounded : ROUNDED["ROUNDED_FULL"]} {...rest}>
<ButtonBase className = {clsx(BUTTON_SIZE[size], className)} size = {size} rounded = {!isCircle ? rounded : ROUNDED["ROUNDED_FULL"]} {...rest}>
{icon}
</ButtonBase>
);
Expand Down

0 comments on commit 620fa8f

Please sign in to comment.