border_all: Add or remove borders

View source: R/border-all.R

border_allR Documentation

Add or remove borders

Description

The border_all() and ⁠border_<side>()⁠ functions adjust a tag element's borders.

Usage

border_all(x, include = TRUE)

border_top(x, include = TRUE)

border_right(x, include = TRUE)

border_bottom(x, include = TRUE)

border_left(x, include = TRUE)

Arguments

x

A tag element or .style pronoun.

include

A boolean specifying to include a side. One of,

  • TRUE

  • FALSE

    Defaults to TRUE.

Value

An object of the same type as x.

Examples


library(htmltools)

h3(
  .style %>%
    border_bottom() %>%
    border_color(theme_warning()) %>%
    text_color(theme_warning()),
  "Warning"
)


cascadess documentation built on Oct. 30, 2024, 9:29 a.m.