View Source PetalComponents.Card (petal_components v1.0.8)
Link to this section Summary
Functions
Attributes
class(:string) - CSS class. Defaults to"".variant(:string) - Defaults to"basic". Global attributes are accepted.
Slots
inner_block
Attributes
heading(:string) - creates a heading. Defaults tonil.category(:string) - creates a category. Defaults tonil.category_color_class(:string) - sets a category color class. Defaults to"pc-card__category--primary".class(:string) - CSS class. Defaults to"". Global attributes are accepted.
Slots
inner_block
Attributes
class(:string) - CSS class. Defaults to"". Global attributes are accepted.
Slots
inner_block
Attributes
aspect_ratio_class(:string) - aspect ratio class. Defaults to"aspect-video".src(:string) - hosted image URL. Defaults tonil.class(:string) - CSS class. Defaults to"". Global attributes are accepted.
Slots
inner_block
Link to this section Functions
attributes
Attributes
class(:string) - CSS class. Defaults to"".variant(:string) - Defaults to"basic". Global attributes are accepted.
slots
Slots
inner_block
attributes
Attributes
heading(:string) - creates a heading. Defaults tonil.category(:string) - creates a category. Defaults tonil.category_color_class(:string) - sets a category color class. Defaults to"pc-card__category--primary".class(:string) - CSS class. Defaults to"". Global attributes are accepted.
slots
Slots
inner_block
attributes
Attributes
aspect_ratio_class(:string) - aspect ratio class. Defaults to"aspect-video".src(:string) - hosted image URL. Defaults tonil.class(:string) - CSS class. Defaults to"". Global attributes are accepted.
slots
Slots
inner_block