@@ -64,7 +64,7 @@ users = [
64
64
def users_table () -> list[AnyComponent]:
65
65
"""
66
66
Show a table of four users, `/api` is the endpoint the frontend will connect to
67
- when a user fixes `/` to fetch components to render.
67
+ when a user visits `/` to fetch components to render.
68
68
"""
69
69
return [
70
70
c.Page( # Page provides a basic container for components
@@ -119,33 +119,9 @@ Of course, that's a very simple application, the [full demo](https://fastui-demo
119
119
120
120
### Components
121
121
122
- FastUI already defines the following components, all are shown in the [ demo app] ( https://fastui-demo.onrender.com ) :
123
-
124
- - ` Text ` — renders a string
125
- - ` Paragraph ` — renders a string as a paragraph
126
- - ` PageTitle ` — renders nothing, sets the HTML page title
127
- - ` Div ` — renders a ` <div> ` with arbitrary components inside
128
- - ` Page ` — a container for components
129
- - ` Heading ` — renders a heading ` <h1> ` to ` <h6> `
130
- - ` Markdown ` — renders markdown, [ example] ( https://fastui-demo.onrender.com )
131
- - ` Code ` — renders code with highlighting in a ` <pre> `
132
- - ` Button ` — renders a ` <button> `
133
- - ` Link ` — renders a link ` <a> `
134
- - ` LinkList ` — renders a list of links
135
- - ` Navbar ` — renders a navbar ` <nav> `
136
- - ` Modal ` — renders a modal dialog that opens triggered by an event
137
- - ` ServerLoad ` — render components fetched from the server, also provides SSE mode to update components based on server sent events
138
- - ` Table ` — renders a table
139
- - ` Details ` — renders a table of key/value pairs as a ` <dl> `
140
- - ` Display ` — renders a value based on a display mode
141
- - ` Table ` — renders a table from a list of Pydantic models
142
- - ` Pagination ` — renders a pagination component
143
- - ` FormFieldInput ` — renders a form field using ` <input> `
144
- - ` FormFieldBoolean ` — renders a form field for a boolean using ` <input type="checkbox"> `
145
- - ` FormFieldSelect ` — renders a form field using ` <select> ` or [ react-select] ( https://react-select.com )
146
- - ` FormFieldSelectSearch ` — renders a form field using [ react-select] ( https://react-select.com ) with options updated from the server on search
147
- - ` Form ` — renders a form using a list of ` FormField ` components
148
- - ` ModelForm ` — renders a form based on a Pydantic model; the model's JSON Schema is used to build a list of ` FormField ` components
122
+ FastUI already defines a rich set of components.
123
+
124
+ All components are listed in the [ demo app] ( https://fastui-demo.onrender.com ) .
149
125
150
126
## The Principle (long version)
151
127
0 commit comments