Sha256: e2fe40c4b1026c0938fcdfd40ea4240ec0e166d3d627bd81a6796caf5774b7dd
Contents?: true
Size: 615 Bytes
Versions: 49
Compression:
Stored size: 615 Bytes
Contents
module PlutoniumUi class NavUserLinkComponent < PlutoniumUi::Base renders_one :leading renders_one :trailing option :label option :url, as: :href private def base_attributes # base attributes go here { id: "nav-user-link-#{label.parameterize}", classname: "nav-user-link flex justify-between items-center py-2 px-4 text-sm hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white", controller: "nav-user-link", href: } end end end Plutonium::ComponentRegistry.register :nav_user_link, to: PlutoniumUi::NavUserLinkComponent
Version data entries
49 entries across 49 versions & 1 rubygems