Sha256: 2a94495e53d728b9bd5d4be71234ec180680df8a547ebd6e6aba63d36d94804e
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
module Plutonium::Ui class ToolbarComponent < Plutonium::Ui::Base option :resource option :actions, default: proc { {} } def classname "flex flex-col md:flex-row items-center justify-between space-y-3 md:space-y-0 md:space-x-4 #{super}" end private def toolbar_actions_classes "w-full md:w-auto flex flex-col md:flex-row space-y-1 md:space-y-0 items-stretch md:items-center justify-end shrink-0" end end end Plutonium::ComponentRegistry.register :toolbar, to: Plutonium::Ui::ToolbarComponent
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plutonium-0.8.0 | app/views/components/toolbar/toolbar_component.rb |