fix title on icon button

This commit is contained in:
Pavel Mineev
2021-08-09 11:10:19 -05:00
committed by Umputun
parent 79386a8b14
commit 184ac7efb6
@@ -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}