🚀 The Lookbook v2.0 beta is now available! Check out the docs →
v1.5.3

Component

Represents a component.

Attributes

.name

Component class name, e.g. Elements::ButtonComponent

Type: String
.file_path

Full filesystem path to the component class file

Type: Pathname
.relative_file_path

Component class file path, relative to the components directory.

Type: Pathname
.directory_path

Directory containing the component class file

Type: Pathname
.template_file_path

Path to the component template file, if present

Type: Pathname
.inline?

Returns true if the component does not have a template file

Type: Boolean