From 8beb7fdf1ff1c94e9a9a6c7c90be4159d85d8a79 Mon Sep 17 00:00:00 2001 From: Chaojie Date: Mon, 4 Dec 2023 21:07:26 +0800 Subject: [PATCH] Add toggle switches support (#46) Co-authored-by: Samuel Colvin --- README.md | 2 +- packages/fastui-bootstrap/src/index.tsx | 16 ++++++++++++---- packages/fastui-prebuilt/src/main.scss | 7 ++++++- packages/fastui/src/components/FormField.tsx | 9 +++++---- packages/fastui/src/components/index.tsx | 6 +++--- python/demo/forms.py | 4 +++- python/fastui/components/__init__.py | 4 ++-- python/fastui/components/forms.py | 7 ++++--- python/fastui/json_schema.py | 15 +++++++++------ 9 files changed, 45 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 388f9356..92890dcd 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ FastUI already defines the following components, all are shown in the [demo app] - `Table` — renders a table from a list of Pydantic models - `Pagination` — renders a pagination component - `FormFieldInput` — renders a form field using `` -- `FormFieldCheckbox` — renders a form field for a boolean using `` +- `FormFieldBoolean` — renders a form field for a boolean using `` - `FormFieldSelect` — renders a form field using `