Files
sweet/www/islands/FormSubmitDemo.tsx
T
bb23643779 feat: support tailwindcss v4 (#3054)
update /www and tailwind-plugin to support tailwind v4.

Thanks to the merge of #3034, the work of integrating and advancing
#2903 is promoted.

related #3034 
related #2903 

close #3056
close #2819

--patch-1 
based on review,

1. del compiler and make it more clean and simple,
2.  fix init tailwind part,
3. fix test tailwind part

--patch-2

1. fix the docs 
2. fix the docs of plugin and version

--patch-3
1. Addressed various maintenance tasks (chores)
2. Updated the Tailwind CSS plugin to align with this release. Generated
a fresh project using the updated init configuration and
3. deployed it via Deno Deploy EA. Deployment is functioning correctly.

--patch-4
Move postcss imports to Tailwind section in init script

--patch-5
Refactored Tailwind plugin type definitions by copying PluginOptions
properties from @tailwindcss/postcss and adding Fresh-specific exclude
option, while exporting types from package entrypoint for better
accessibility.

Test Project: https://fresh.fresh-press.deno.net/
Test Project Repository:
https://github.com/SisyphusZheng/fresh-tailwindv4
Test Plugin: https://jsr.io/@freshpress/fresh-plugin-tailwind@1.0.0

---------

Co-authored-by: 李嘉图·M·路 <146103794+Ricardo-M-Zheng@users.noreply.github.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2025-07-21 16:13:34 +02:00

56 lines
1.5 KiB
TypeScript

export function FormSubmitDemo() {
return (
<form action="/" method="POST" class="text-left md:px-8">
<fieldset class="mb-4">
<legend class="mb-2 font-bold">What's your favorite treat?</legend>
<label for="lemon-meringue-pie" class="flex gap-2 items-center">
<input
type="radio"
value="lemon-meringue-pie"
id="lemon-meringue-pie"
name="treat"
checked
/>
Lemon meringue pie
</label>
<label for="lemon-shortbread-cookies" class="flex gap-2 items-center">
<input
type="radio"
value="lemon-shortbread-cookies"
id="lemon-shortbread-cookies"
name="treat"
/>
Lemon shortbread cookies
</label>
<label for="lemon-sherbet" class="flex gap-2 items-center">
<input
type="radio"
value="lemon-sherbet"
id="lemon-sherbet"
name="treat"
/>
Lemon sherbet
</label>
<label for="lemon-bars" class="flex gap-2 items-center">
<input
type="radio"
value="lemon-bars"
id="lemon-bars"
name="treat"
/>
Lemon bars
</label>
</fieldset>
<button
type="submit"
value="Submit"
class="pt-2 pb-1 px-3 rounded-sm border-current border-[1.5px] font-semibold"
>
Submit
</button>
</form>
);
}