how to integrate with material design like bootstrap #980
Replies: 8 comments 6 replies
-
ReactPy, like ReacJS, does not supply its own UI framework. If you're looking for something dead simple, I'd recommend PicoCSS. This is a simple TODO app I made using PicoCSS and ReactPy. To include CSS in your app, you can do one of two things:
To include it directly in your app all you have to do is use a from reactpy import component, html, run
pico_css = html.link({"rel": "stylesheet", "href": "https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css"})
@component
def example():
return html.div(
pico_css,
html.button("My styled button")
)
run(example) If instead you want to include it in the from starlette.applications import Starlette
from reactpy.backend.startlette import configure, Options
from reactpy import component, html
@component
def example():
...
app = Starlette()
pico_css = html.link(dict(rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css"))
custom_head = html.head(pico_css)
configure(app, example, Options(head=custom_head)) Refer to Starlette docs on how to run the web server |
Beta Was this translation helpful? Give feedback.
-
how to class in html.div example in pico css
how to use in html.div |
Beta Was this translation helpful? Give feedback.
-
can you add docs how to use table in you documentation |
Beta Was this translation helpful? Give feedback.
-
why my html.form when submitted there is an error like this
my code
|
Beta Was this translation helpful? Give feedback.
-
what if the tbody data comes from an array is there an example
|
Beta Was this translation helpful? Give feedback.
-
I have a problem why reactPy can't refresh realtime when changes occur. So . i want to add data when i click add new button . it automatically adds the data below it
i run with command |
Beta Was this translation helpful? Give feedback.
-
why my sweetalert click not work my code
|
Beta Was this translation helpful? Give feedback.
-
sorry, now it's solved |
Beta Was this translation helpful? Give feedback.
-
how to add ui framework design . like material ui, chakra ui, or bootstrap. and does reactPy already have its own ui framework?
Beta Was this translation helpful? Give feedback.
All reactions