All Projects → nteetor → cascadess

nteetor / cascadess

Licence: Unknown, MIT licenses found Licenses found Unknown LICENSE MIT LICENSE.md
A style pronoun for {htmltools} tags

Programming Languages

r
7636 projects
SCSS
7915 projects

Projects that are alternatives of or similar to cascadess

shinydnd
Creating drag and drop elements in Shiny
Stars: ✭ 89 (+394.44%)
Mutual labels:  shiny
colorscale
Create a color scale from a single color
Stars: ✭ 80 (+344.44%)
Mutual labels:  shiny
shinyAppTutorials
a collection of shiny app demonstrations 📊
Stars: ✭ 50 (+177.78%)
Mutual labels:  shiny
pushbar
🖥️ Off-canvas elements for Shiny
Stars: ✭ 59 (+227.78%)
Mutual labels:  shiny
TCC-GUI
📊 Graphical User Interface for TCC package
Stars: ✭ 35 (+94.44%)
Mutual labels:  shiny
wired
Wired elements in Shiny
Stars: ✭ 46 (+155.56%)
Mutual labels:  shiny
shinyglide
Glide.js component for Shiny apps
Stars: ✭ 83 (+361.11%)
Mutual labels:  shiny
shinyhelper
Add markdown help files to 'shiny' apps
Stars: ✭ 108 (+500%)
Mutual labels:  shiny
daattali.github.io
Dean Attali's website - R/Shiny Consultant
Stars: ✭ 51 (+183.33%)
Mutual labels:  shiny
wcde-shiny
Wittgenstein Centre Data Explorer
Stars: ✭ 13 (-27.78%)
Mutual labels:  shiny
customer-tracker
R data products: Reports, Presentations, Apps, and API's
Stars: ✭ 19 (+5.56%)
Mutual labels:  shiny
jsTreeR
A wrapper of the jQuery plugin `jsTree`.
Stars: ✭ 36 (+100%)
Mutual labels:  shiny
ygdashboard
A modified shinydashboard to incorporate more functionality from adminLTE
Stars: ✭ 39 (+116.67%)
Mutual labels:  shiny
analytics-platform-shiny-server
Analytics Platform Shiny Server
Stars: ✭ 21 (+16.67%)
Mutual labels:  shiny
CoronaDash
COVID-19 spread shiny dashboard with a forecasting model, countries' trajectories graphs, and cluster analysis tools
Stars: ✭ 20 (+11.11%)
Mutual labels:  shiny
shiny crud
Example Shiny apps implementing CRUD database functionality
Stars: ✭ 88 (+388.89%)
Mutual labels:  shiny
antaresViz
ANTARES Visualizations
Stars: ✭ 19 (+5.56%)
Mutual labels:  shiny
funRiceGenes
The knowledge of cloned rice genes lost in the information of rice functional genomics studies
Stars: ✭ 23 (+27.78%)
Mutual labels:  shiny
shinyproxy-docker-compose-example
An example to set up a docker compose for ShinyProxy
Stars: ✭ 20 (+11.11%)
Mutual labels:  shiny
tagsinput
Bootstrap tags input for shiny
Stars: ✭ 20 (+11.11%)
Mutual labels:  shiny

cascadess

Lifecycle: maturing r-cmd-check codecov CRAN status

A style pronoun and utilities for {htmltools} tags.

What can I use cascadess for?

  • Change background color
  • Vertically stack action buttons
  • Optimize control panel layout for smaller screens
  • Affix an element to the top of the webpage
  • Increase or decrease space between html elements
  • Force text to upper, lower, or title case

Most importantly, cascadess's styles can be used with any shiny related package and are designed to not clash with or overwrite existing CSS styles.

Why a pronoun?

Cascadess defines a style pronoun, .style, usable inside htmltools::tags HTML builder functions. With .style you can specify styling directly within the builder function call, which helps the reader immediately understand how the HTML tag element is styled. Without the .style pronoun, styling is applied after the function call, e.g div() %>% margin() %>% background().

library(htmltools)
library(cascadess)

div(
  .style %>%
    margin(2) %>%
    border("indigo") %>%
    shadow("medium"),
  p("Fusce sagittis, libero non molestie mollis, magna",
    "orci ultrices dolor, at vulputate neque nulla lacinia eros.")
)

Usage

The cascadess() function must be included in a UI so the necessary CSS files are found.

ui <- list(
  cascadess(),
  h4(
    .style %>%
      font(case = "upper") %>%
      border(bottom = "red"),
    "Etiam vel tortor sodales tellus ultricies commodo."
  )
)

Installation

The stable version may be installed from CRAN.

install.packages("cascadess")

The development version may be installed from the master branch.

## install.packages("devtools")
devtools::install_github("nteetor/cascadess")
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].