-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
2,533 additions
and
2,001 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
<script lang="ts" setup> | ||
const props = defineProps<{ header: string }>() | ||
defineProps<{ header?: string }>() | ||
</script> | ||
|
||
<template> | ||
<div class="flex flex-col gap-4"> | ||
<h2 class="text-xl">{{ props.header }}</h2> | ||
<small v-if="$slots.timestamp" class="text-layer-muted"> | ||
<slot name="timestamp" /> | ||
</small> | ||
<header class="flex flex-col gap-2"> | ||
<h3 v-if="$slots.header || header" class="text-2xl"> | ||
<strong> | ||
<slot name="header"> | ||
<template v-if="header"> | ||
{{ header }} | ||
</template> | ||
</slot> | ||
</strong> | ||
</h3> | ||
</header> | ||
<slot /> | ||
<ul v-if="$slots.items" class="flex flex-col gap-1 list-disc pl-4"> | ||
<slot name="items" /> | ||
</ul> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.