class UI::Button

Defined in:

components/ui/button.cr

Constant Summary

ASSIGNS = [size : Size = Size::Medium] of Nil
BUTTON_BACKGROUND_ACTIVE = "bg-primary-700"
BUTTON_BACKGROUND_DEFAULT = "bg-primary-600"
BUTTON_BACKGROUND_HOVER = "bg-primary-500"
BUTTON_BORDER_FOCUS = "border-primary-700"

Constructors

Class Method Summary

Instance Method Summary

Class methods inherited from class BaseComponent

file_location file_location

Constructor Detail

def self.new(size : Size = Size::Medium, **unused_exposures) #

Class Method Detail

def self.file_location #

Returns the relative file location to the project root. e.g. src/components/my_component.cr


[View source]

Instance Method Detail

def render(&) #

[View source]
def size : UI::Button::Size #