reflex/pynecone/components/forms
Masen Furer aa2a1df201
Add vars and components for working with color_mode (#1132)
* `pc.color_mode`: a BaseVar that accesses colorMode on the frontend
* `pc.color_mode_cond`: a `pc.cond` wrapper that conditionally renders
  components or props based on the value of `color_mode`
* `pc.color_mode_icon`: by default "sun" if light mode, "moon" if dark mode
* `pc.color_mode_switch`: a Switch component where is_checked depends on the
  color_mode and changing the value calls toggle_color_mode
* `pc.color_mode_button`: a Button component that calls toggle_color_mode on click

The default template has been updated to include a color_mode_button with
color_mode_icon for toggling light/dark mode. The inline hover style has also
been updated to use color_mode_cond to show a different highlight color based
on the color_mode.
2023-06-11 23:28:33 -07:00
..
__init__.py Add vars and components for working with color_mode (#1132) 2023-06-11 23:28:33 -07:00
button.py Add pc.form component (#929) 2023-05-14 22:34:10 -07:00
checkbox.py Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -07:00
colormodeswitch.py Add vars and components for working with color_mode (#1132) 2023-06-11 23:28:33 -07:00
copytoclipboard.py Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -07:00
date_picker.py Add Date and DateTime Pickers (#1126) 2023-06-04 18:17:26 -07:00
date_time_picker.py Add Date and DateTime Pickers (#1126) 2023-06-04 18:17:26 -07:00
editable.py Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -07:00
email.py Add email component (#1093) 2023-05-27 23:11:01 -07:00
form.py add missing comment form (#1081) 2023-05-25 09:52:57 -07:00
iconbutton.py Rename var module to vars (#983) 2023-05-09 23:01:25 -07:00
input.py Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -07:00
multiselect.py revert pc select to original (#1123) 2023-06-02 12:34:48 -07:00
numberinput.py Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -07:00
password.py Rename var module to vars (#983) 2023-05-09 23:01:25 -07:00
pininput.py Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -07:00
radio.py Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -07:00
rangeslider.py Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -07:00
select.py revert pc select to original (#1123) 2023-06-02 12:34:48 -07:00
slider.py Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -07:00
switch.py Component props docs update (#1176) 2023-06-09 12:10:25 -07:00
textarea.py Component props docs update (#1176) 2023-06-09 12:10:25 -07:00
upload.py Update pc.form on_submit args (#1033) 2023-05-16 12:09:15 -07:00