rounded_all: Element corners

View source: R/rounded-all.R

rounded_allR Documentation

Element corners

Description

The ⁠rounded_*()⁠ functions adjust the corners of a tag element.

Usage

rounded_all(x, size)

rounded_top(x, size)

rounded_right(x, size)

rounded_bottom(x, size)

rounded_left(x, size)

Arguments

x

A tag element or .style pronoun.

size

A number or character string specifying a corner size. One of,

  • 0

  • 1

  • 2

  • 3

  • 4

  • 5

  • "circle"

  • "pill"

    Use 0 to remove rounded corners.

Value

An object of the same type as x.

Examples


library(htmltools)

div(
  .style %>%
    rounded_all(3)
)

div(
  .style %>%
    rounded_left("pill")
)


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