class NfgUi::Components::Patterns::Dropdown
Badge doesn't have any customizations unique to the design system yet As such, the NFG UI
badge is simply a bootstrap badge behind the scenes. Traits
will eventually be connected here.
Public Instance Methods
render() { |: body)| ... }
click to toggle source
# File lib/nfg_ui/components/patterns/dropdown.rb, line 16 def render content_tag(:div, html_options) do if button.present? concat(NfgUi::Bootstrap::Components::DropdownToggle.new({ body: button, theme: theme, as: :button, offset: offset }, view_context).render) end concat(block_given? ? yield : body) end end