Class: Shadcn::SidebarGroupLabelComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/shadcn/sidebar_group_label_component.rb

Overview

SidebarGroupLabel component - label for a sidebar group

Constant Summary collapse

BASE_CLASSES =
"duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0"
COLLAPSED_CLASSES =
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0"

Instance Attribute Summary

Attributes inherited from BaseComponent

#class_name, #data, #html_options

Instance Method Summary collapse

Methods inherited from BaseComponent

#content, #initialize

Methods included from Rails::Helpers::ClassNameHelper

#cn

Constructor Details

This class inherits a constructor from Shadcn::BaseComponent

Instance Method Details

#callObject



9
10
11
# File 'app/components/shadcn/sidebar_group_label_component.rb', line 9

def call
  (:div, content, label_attributes)
end