class Shared::Navbar

Defined in:

components/shared/navbar.cr

Constant Summary

ASSIGNS = [user : User | ::Nil] of Nil

Constructors

Class Method Summary

Instance Method Summary

Class methods inherited from class BaseComponent

file_location file_location

Constructor Detail

def self.new(user : User | Nil = nil, **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 render_sign_in_or_out(user : Nil) #

[View source]
def render_sign_in_or_out(user : User) #

[View source]
def user : User? #