diff --git a/apps/demo/astro.config.mjs b/apps/demo/astro.config.mjs index 572b8cb..4840250 100644 --- a/apps/demo/astro.config.mjs +++ b/apps/demo/astro.config.mjs @@ -1,7 +1,4 @@ -import { defineConfig } from 'astro/config'; -import tailwind from '@astrojs/tailwind'; +import { defineConfig } from "astro/config"; // https://astro.build/config -export default defineConfig({ - integrations: [tailwind()] -}); +export default defineConfig({}); diff --git a/apps/demo/src/components/Nav.astro b/apps/demo/src/components/Nav.astro new file mode 100644 index 0000000..6041af5 --- /dev/null +++ b/apps/demo/src/components/Nav.astro @@ -0,0 +1,8 @@ +--- +--- + + diff --git a/apps/demo/src/pages/index.astro b/apps/demo/src/pages/index.astro index af65617..79be3e5 100644 --- a/apps/demo/src/pages/index.astro +++ b/apps/demo/src/pages/index.astro @@ -1,4 +1,5 @@ --- +import Nav from "../components/Nav.astro"; import Form, { ControlConfig, FormGroup, @@ -34,8 +35,9 @@ const form = new FormGroup([ name: "agreement", label: "Agreement", type: "radio", + value: "yes", options: [ - { label: "Agree", value: "yes", checked: true }, + { label: "Agree", value: "yes" }, { label: "Disagree", value: "no" }, ], }, @@ -83,7 +85,7 @@ const theme = "dark"; Astro - +