Skip to contents

This function can only be used inside s_borders.

Usage

s_border(color = NULL, width = NULL, line_style = NULL)

Arguments

color

Border color as hex (e.g., "#000000") or color name (e.g., "black", "red")

width

Border width, e.g. "1pt"

line_style

Line style: "single", "double", "dashed", "dotted", "thick", "none"

Value

A border specification object

Examples

if (FALSE) { # \dontrun{
# Cell-level borders (inside s_table_style)
spec <- create_text() |>
  add_style("my_style",
    s_table_style(
      borders = s_borders(
        bottom = s_border(color = "#000000", width = "2pt", line_style = "single")
      )
    )
  )

# Paragraph-level borders (inside s_paragraph)
spec <- create_table(mtcars) |>
  add_style("para_underline",
    s_paragraph(
      borders = s_borders(
        bottom = s_border(width = "1pt")
      )
    )
  )
} # }