class NoticeComponentPreview
Public Instance Methods
default()
click to toggle source
# File lib/alveole/previews/notice_component_preview.rb, line 4 def default render(NoticeComponent.new(title: 'Example Alert', messages: ['Message 1', 'Message 2'])) end
with_type_notice()
click to toggle source
# File lib/alveole/previews/notice_component_preview.rb, line 12 def with_type_notice render(NoticeComponent.new(title: 'Example Notice', messages: ['Message 1', 'Message 2'], type: 'notice')) end
without_messages()
click to toggle source
# File lib/alveole/previews/notice_component_preview.rb, line 8 def without_messages render(NoticeComponent.new(title: 'Example Notice')) end