summaryrefslogblamecommitdiffstatshomepage
path: root/frontend/src/lib/pills/AssociationPill.svelte
blob: 85dbe3955e21c860172541e2ea60e6f6f0f8aaaf (plain) (tree)





























                                                                       
<script lang="ts">
	import Pill from './Pill.svelte';

	type Association = 'artist' | 'circle' | 'world' | 'character';

	export let name: string;
	export let type: Association;
</script>

<Pill {name}>
	<span class={`${type} icon-xs`} slot="icon" />
</Pill>

<style lang="postcss">
	.artist {
		@apply icon-[material-symbols--person] -mx-px;
	}

	.character {
		@apply icon-[material-symbols--face];
	}

	.circle {
		@apply icon-[material-symbols--group] mx-px;
	}

	.world {
		@apply icon-[material-symbols--public];
	}
</style>