summaryrefslogtreecommitdiff
path: root/examples/basics/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basics/src/components')
-rw-r--r--examples/basics/src/components/Card.astro4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/basics/src/components/Card.astro b/examples/basics/src/components/Card.astro
index 4039d4f4f..aea28c83f 100644
--- a/examples/basics/src/components/Card.astro
+++ b/examples/basics/src/components/Card.astro
@@ -4,7 +4,8 @@ export interface Props {
body: string;
href: string;
}
-const { href, title, body } = Astro.props;
+
+const { href, title, body } = Astro.props as Props;
---
<li class="link-card">
@@ -69,6 +70,7 @@ const { href, title, body } = Astro.props;
}
.link-card:is(:hover, :focus-within) h2 span {
+ will-change: transform;
transform: translateX(2px);
}
</style>