Skip to content

Commit 50547e0

Browse files
authored
feat: add svelte form (#390)
1 parent b437d9e commit 50547e0

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

app/libraries/form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const formProject = {
1414
cardStyles: `shadow-xl shadow-yellow-700/20 dark:shadow-lg dark:shadow-yellow-500/30 text-yellow-500 border-2 border-transparent hover:border-current`,
1515
to: '/form',
1616
tagline: `Headless UI for building performant and type-safe forms`,
17-
description: `Headless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid and Lit`,
17+
description: `Headless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid, Lit and Svelte.`,
1818
ogImage: 'https://github.com/tanstack/form/raw/main/media/repo-header.png',
1919
badge: 'new',
2020
bgStyle: 'bg-yellow-500',
@@ -26,7 +26,7 @@ export const formProject = {
2626
colorFrom: 'from-yellow-500',
2727
colorTo: 'to-yellow-600',
2828
textColor: 'text-yellow-600',
29-
frameworks: ['react', 'vue', 'angular', 'solid', 'lit'],
29+
frameworks: ['react', 'vue', 'angular', 'solid', 'lit', 'svelte'],
3030
scarfId: '72ec4452-5d77-427c-b44a-57515d2d83aa',
3131
menu: [
3232
{

app/routes/_libraries/form.$version.index.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ export default function FormVersionIndex() {
6161
<span className="underline decoration-dashed decoration-yellow-500 decoration-3 underline-offset-2">
6262
Headless, performant, and type-safe
6363
</span>{' '}
64-
form state management for TS/JS, React, Vue, Angular, Solid, and Lit
64+
form state management for TS/JS, React, Vue, Angular, Solid, Lit and
65+
Svelte
6566
</h2>
6667
<p
6768
className="text opacity-90 max-w-[500px]
@@ -77,7 +78,8 @@ export default function FormVersionIndex() {
7778
you need to build forms fast with peace of mind.
7879
</p>
7980
<Link
80-
to="./docs/"
81+
to="/$libraryId/$version/docs"
82+
params={{ libraryId: library.id, version }}
8183
className={`py-2 px-4 bg-yellow-400 text-black rounded uppercase font-extrabold`}
8284
>
8385
Get Started
@@ -264,7 +266,8 @@ export default function FormVersionIndex() {
264266
</div>
265267
<div>
266268
<Link
267-
to="./docs/"
269+
to="/$libraryId/$version/docs"
270+
params={{ libraryId: library.id, version }}
268271
className={`inline-block py-2 px-4 bg-yellow-500 rounded text-black uppercase font-extrabold`}
269272
>
270273
Get Started!

0 commit comments

Comments
 (0)