Learn R Programming

cascadess (version 0.1.0)

shadow: Shadows

Description

The shadow() function adjusts the box shadow of a tag element. Shadows help distinguish elements or indicate interactivity.

Usage

shadow(x, size)

Arguments

x

A tag element or .style pronoun.

size

One of "small", "sm", "medium", "md", "large", "lg", or "none" specifying the amount of shadow added.

Sizes

small

sm

medium

md

large

lg

none

Examples

Run this code
# NOT RUN {
library(htmltools)

div(
  .style %>%
    shadow("md"),
  "Donec posuere augue in quam."
)

div(
  .style %>%
    border("red") %>%
    shadow("small"),
  "Praesent augue."
)

# }

Run the code above in your browser using DataLab