From e586d7d704d475afe3373a1de6ae20d504f79d6d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 14:25:23 +0000 Subject: Sync from a8e1c0a7402940e0fc5beef669522b315052df1b --- examples/hackernews/src/components/Toggle.astro | 78 +++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 examples/hackernews/src/components/Toggle.astro (limited to 'examples/hackernews/src/components/Toggle.astro') diff --git a/examples/hackernews/src/components/Toggle.astro b/examples/hackernews/src/components/Toggle.astro new file mode 100644 index 000000000..799fca08c --- /dev/null +++ b/examples/hackernews/src/components/Toggle.astro @@ -0,0 +1,78 @@ +--- +interface Props { + open?: boolean; +} + +const { open = false } = Astro.props; +--- + + +
+ {open ? '[-]' : '[+] comments collapsed'} +
+ +
+ + + + -- cgit v1.2.3