Module: NfgUi::Components::Traits::Alert

Included in:
Elements::Alert
Defined in:
lib/nfg_ui/components/traits/alert.rb

Overview

Access to pre-designed Alert traits

Constant Summary collapse

TRAITS =
i[tip].freeze

Instance Method Summary collapse

Instance Method Details

#tip_traitObject



10
11
12
13
14
# File 'lib/nfg_ui/components/traits/alert.rb', line 10

def tip_trait
  options[:icon] = 'lightbulb-o'
  options[:theme] = :info
  options[:dismissible] = false
end