R/wa_tab_panel.R

Defines functions wa_tab_panel

Documented in wa_tab_panel

# Generated by tools/generate_components.R. Do not edit by hand.
# nolint start: object_usage_linter.

#' Create a `wa-tab-panel` component
#'
#' Generated wrapper for the Web Awesome `wa-tab-panel` component.
#' Generated from Web Awesome metadata.
#'
#' @param ... Child content for the component's default slot.
#' @param id Optional DOM id attribute for HTML, CSS, and JS targeting.
#' @param class Optional CSS class string.
#' @param style Optional inline CSS style string.
#' @param name String. Default: `""`. The tab panel's name.
#' @param active Boolean. Default: `FALSE`. When TRUE, the tab panel will
#' be shown.
#' @param dir String. Optional Web Awesome attribute.
#' @param lang String. Optional Web Awesome attribute.
#'
#' @section Shiny Bindings:
#' None.
#'
#' @return An HTML tag for the component.
#'
#' @export
wa_tab_panel <- function(
  ...,
  id = NULL,
  class = NULL,
  style = NULL,
  name = NULL,
  active = NULL,
  dir = NULL,
  lang = NULL
) {
  children <- list(...)

  attrs <- .wa_normalize_attrs(
    list(
      "id" = id,
      "class" = class,
      "style" = style,
      "name" = name,
      "active" = active,
      "dir" = dir,
      "lang" = lang
    ),
    boolean_names = c("active"),
    boolean_arg_names = c("active" = "active")
  )

  do.call(
    .wa_component,
    c(
      list("wa-tab-panel", .attrs = attrs),
      children
    )
  )
}
# nolint end

Try the shiny.webawesome package in your browser

Any scripts or data that you put into this service are public.

shiny.webawesome documentation built on April 22, 2026, 1:09 a.m.