Skip to contents

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"
)
#> <h3 class="border-bottom border-warning text-warning">Warning</h3>