fix title on icon button
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import clsx from 'clsx';
|
||||
import { h, RenderableProps, JSX } from 'preact';
|
||||
import { h, JSX } from 'preact';
|
||||
|
||||
import styles from './icon-button.module.css';
|
||||
|
||||
type Props = JSX.HTMLAttributes<HTMLButtonElement> & RenderableProps<{ className?: string }>;
|
||||
type Props = JSX.HTMLAttributes<HTMLButtonElement>;
|
||||
|
||||
export function IconButton({ title, children, className, ...props }: Props) {
|
||||
export function IconButton({ children, className, ...props }: Props) {
|
||||
return (
|
||||
<button className={clsx('icon-button', className, styles.root)} {...props}>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user