diff --git a/packages/web/src/components/icon-button.tsx b/packages/web/src/components/icon-button.tsx index c83d48a..ed618f8 100644 --- a/packages/web/src/components/icon-button.tsx +++ b/packages/web/src/components/icon-button.tsx @@ -7,15 +7,16 @@ type Props = { label: string; children: ReactNode; disabled?: boolean; + size?: 'xs' | 'sm'; } & ({onClick: () => void; to?: never} | {to: string; onClick?: never}); // A header's icon action: a ghost icon button with its label in a tooltip. -export function IconButton({label, children, disabled = false, onClick, to}: Props) { +export function IconButton({label, children, disabled = false, size = 'sm', onClick, to}: Props) { const button = to === undefined ? (