Skip to content

Commit

Permalink
fix: align icon button items to center (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
elcharitas authored Mar 28, 2023
1 parent 8a37887 commit 06f61c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/components/buttons/IconButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
import Button from './Button.svelte';
import type { IconButtonProps } from './IconButton.svelte';
type $$Props = IconButtonProps ;
type $$Props = IconButtonProps;
export let icon: $$Props['as'];
export let wrap: $$Props['wrap'] = 'div';
const events = forwardEvents();
</script>

<Button {events} {...$$restProps}>
<Button {events} display="flex" justifyContent="center" alignItems="center" {...$$restProps}>
<Icon as={icon} {wrap} />
<slot />
</Button>

0 comments on commit 06f61c9

Please sign in to comment.