mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 09:15:35 +03:00
refactor(web): centralize buttons (#2200)
This commit is contained in:
14
web/src/lib/components/elements/buttons/icon-button.svelte
Normal file
14
web/src/lib/components/elements/buttons/icon-button.svelte
Normal file
@@ -0,0 +1,14 @@
|
||||
<script lang="ts" context="module">
|
||||
export type Color = 'transparent-primary' | 'transparent-gray';
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import Button from './button.svelte';
|
||||
|
||||
export let color: Color = 'transparent-primary';
|
||||
export let title: string | undefined = undefined;
|
||||
</script>
|
||||
|
||||
<Button size="icon" {color} {title} shadow={false} rounded="full" on:click>
|
||||
<slot />
|
||||
</Button>
|
||||
Reference in New Issue
Block a user