Py.Cafe

iisakkirotko/

plain-hound

Dashboard for Setting Start Date with Input Color Styling Using Solara

DocsPricing
  • app.py
  • requirements.txt
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import solara
import solara.lab
import datetime as dt


start = solara.reactive(dt.datetime.strptime("2021-01-01", "%Y-%m-%d"))


@solara.component
def Page():
    solara.lab.InputDate(start,style={"color":"red"},label="Start", classes=["my-element"])
    solara.Style("""
    .my-element * {
        color: inherit !important;
    }
    """)
requirements.txt
1
2
numpy