Skip to content

Commit ef20ba0

Browse files
feat: add url to missing to represent missing resources
1 parent 543dffd commit ef20ba0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/Missing.astro

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
---
2-
2+
interface Props {
3+
// The expected url of the missing resource
4+
url?: string;
5+
}
36
---
47

5-
<span class="missing">
8+
<span class="missing" title={Astro.props.url ?? "Missing Resource"}>
69
<slot />
710
</span>
811

0 commit comments

Comments
 (0)