simple CSS reference for Shiny UI elements?

22 views
Skip to first unread message

Robb Fritz

unread,
Apr 11, 2017, 5:45:21 PM4/11/17
to Shiny - Web Framework for R
I am probably missing something obvious here, but is there a simple reference for styling the various UI elements in Shiny? In other words, just a list of how the elements should be named in CSS?

Bárbara Borges

unread,
Apr 20, 2017, 9:59:37 PM4/20/17
to Shiny - Web Framework for R
You usually have to inspect the app's page using your browser's developer tools. Often, the `inputId` you pass to your Shiny input (or `id` if you're creating a generic `tags()` object) will become the id of the generated HTML element on the page.  A lot of Shiny specific objects also have common css classes (e.g. "shiny-bound-input" for the inputs), but it's always good to take a look at the generated html since some elements also have containers around them (for example, with class "shiny-input-container"), and sometimes it's not obvious which one you actually want to style until you look into the html structure.
Reply all
Reply to author
Forward
0 new messages