Skip to content

how to integrate with material design like bootstrap #980

Answered by rmorshea
bobwatcherx asked this question in Question
Discussion options

You must be logged in to vote

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:

  • include it directly in your app
  • include it in the <head> of the page (recommended)

To include it directly in your app all you have to do is use a <link>:

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 in…

Replies: 8 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Archmonger
Comment options

You must be logged in to vote
2 replies
@rmorshea
Comment options

@rmorshea
Comment options

Comment options

You must be logged in to vote
1 reply
@rmorshea
Comment options

Comment options

You must be logged in to vote
1 reply
@rmorshea
Comment options

Comment options

You must be logged in to vote
1 reply
@rmorshea
Comment options

Comment options

You must be logged in to vote
1 reply
@rmorshea
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants