Skip to content

Commit

Permalink
Merge pull request #83 from elcharitas/dev
Browse files Browse the repository at this point in the history
fix: align icon button items to center
  • Loading branch information
elcharitas authored Mar 28, 2023
2 parents d9aa053 + 06f61c9 commit 29ad2fe
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 29ad2fe

Please sign in to comment.