shadow: Shadows

Description Usage Arguments Sizes Examples

View source: R/shadow.R

Description

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

Usage

1
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

html_preserve

small

sm

medium

md

large

lg

none

/html_preserve

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(htmltools)

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

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

cascadess documentation built on Jan. 13, 2021, 5:10 p.m.