title: R Shiny - Adding a 'remove' button to the box header
body: <p>I am trying to add a title and remove button in the header of the box below:</p>
  
  <p><a href="https://i.stack.imgur.com/gSiBj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gSiBj.png" alt="enter image description here"></a></p>
  
  <p>Here is the code to reproduce the box:</p>
  
  <pre><code>library(shiny)
  library(shinydashboard)
  
  ui &lt;- dashboardPage(
    dashboardHeader(),
    dashboardSidebar(),
    dashboardBody(
      tags$style(HTML("
  
                    .my_class .box.box-solid.box-primary&gt;.box-header {
                      background:rgba(0,128,128,.5);
                      height: 30px;
                      padding-top: 0px
                    }
  
                      .learner-title {margin-top:5px}
  
                      .box.box-solid.box-primary{
                      border-color:rgb(0,128,128);
                      background:rgba(0,128,128,.1)
                      }
  
                      ")),
      fluidRow(
        tags$div(class = "my_class", 
                 box(width = 6, title = div(h4(class = "learner-title", "Box Title"), 
                                            div(class = "box-tools pull-right",
                                                tags$button(class = paste0("btn btn-box-tool"),
                                                            `data-widget` = "remove",
                                                            shiny::icon("remove")
                                                            ))
                                            ), status = "primary", solidHeader = TRUE,
                     "Box content"
                     )
                 )
      )
    )
  )
  
  
  server &lt;- function(input, output) {}
  
  shinyApp(ui, server)
  </code></pre>
  
  <p>While the remove button works, I would like it to sit in the top-right corner of the box and slightly higher up in the header. In the code above, I tried to achieve the right alignment using <code>class = "box-tools pull-right"</code>, but this doesn't seem to work. </p>