how can I make a card with a card header aligned to left and two buttons aligned to the right of the card header?
Drop files here
or click to upload
library(shiny)
library(bslib)
ui <- fluidPage(
card(
card_header(
div(
style = "display: flex; justify-content: space-between; align-items: center;",
"Card Title",
div(
style = "display: flex; gap: 8px;",
actionButton("btn1", "Button 1"),
actionButton("btn2", "Button 2")
)
)
),
card_body(
"Card content goes here"
)
)
)
server <- function(input, output) {
}
shinyApp(ui, server)
Hi! I can help you with any questions about Shiny and R. What would you like to know?