Skip to content

Commit b553967

Browse files
Update +page.svelte
1 parent a468280 commit b553967

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/routes/icons/usage/+page.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ export default function RootLayout({
8383
Here is how to use it with different frameworks:
8484

8585
<div role="tablist" class="tabs tabs-lift overflow-x-scroll pt-5 text-white">
86-
{#each installation_mapping as item, idx}
86+
{#each installation_mapping as item}
87+
{@const is_first = item === installation_mapping.at(0)}
8788
<input
88-
checked={idx === 0}
89+
checked={is_first}
8990
type="radio"
9091
name="code_items"
9192
role="tab"

0 commit comments

Comments
 (0)