A separator visually separates content into groups.

You can render content in the separator by specifying the component's children. The component's children can be plain text or a component like Icon. The content is center-aligned by default.

For more details and examples visit the official docs. The R package can not handle each and every case, so for advanced use cases you need to work using the original docs to achieve the desired result.

Separator(...)

Arguments

alignContent

'start' | 'center' | 'end'
Where the content should be aligned in the separator.

styles

IStyleFunctionOrObject<ISeparatorStyleProps, ISeparatorStyles>
Call to provide customized styling that will layer on top of the variant rules.

theme

ITheme
Theme (provided through customization.)

vertical

boolean
Whether the element is a vertical separator.

Examples

library(shiny.fluent)

if (interactive()) {
  shinyApp(
    ui = Separator("Text"),
    server = function(input, output) {}
  )
}