~james/core

core/web/src/lib/components/repo/CommitBodyToggle.svelte -rw-r--r-- 457 bytes
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 16 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script lang="ts">
	import Ellipsis from "$icon/ellipsis";
	import Button from "#lib/components/ui/Button.svelte";

	interface Props {
		expanded: boolean;
		onclick: () => void;
		class?: string;
	}

	let { expanded, onclick, class: className }: Props = $props();
</script>

<Button
	variant="ghost"
	size="small"
	icon={Ellipsis}
	aria-expanded={expanded}
	aria-label="Toggle commit body"
	class="h-5 min-h-5 rounded-full {className ?? ''}"
	{onclick}
/>