mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
fix(console): icon button classname (#408)
This commit is contained in:
parent
8dd05f776f
commit
a3ba8a8065
1 changed files with 2 additions and 2 deletions
|
@ -7,9 +7,9 @@ export type Props = Omit<HTMLProps<HTMLButtonElement>, 'size' | 'type'> & {
|
|||
size?: 'small' | 'medium' | 'large';
|
||||
};
|
||||
|
||||
const IconButton = ({ size = 'medium', children, ...rest }: Props) => {
|
||||
const IconButton = ({ size = 'medium', children, className, ...rest }: Props) => {
|
||||
return (
|
||||
<button type="button" className={classNames(styles.button, styles[size])} {...rest}>
|
||||
<button type="button" className={classNames(styles.button, styles[size], className)} {...rest}>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue