View Source
PetalComponents.Card
(petal_components v2.0.0)
Summary
Attributes
class (:any) - CSS class. Defaults to nil.variant (:string) - Defaults to "basic".- Global attributes are accepted.
Slots
Attributes
heading (:string) - creates a heading. Defaults to nil.category (:string) - creates a category. Defaults to nil.category_color_class (:any) - sets a category color class. Defaults to "pc-card__category--primary".class (:any) - CSS class. Defaults to nil.- Global attributes are accepted.
Slots
Attributes
class (:any) - CSS class. Defaults to nil.- Global attributes are accepted.
Slots
Attributes
aspect_ratio_class (:any) - aspect ratio class. Defaults to "aspect-video".src (:string) - hosted image URL. Defaults to nil.class (:any) - CSS class. Defaults to nil.- Global attributes are accepted.
Slots
Functions
Attributes
class (:any) - CSS class. Defaults to nil.variant (:string) - Defaults to "basic".- Global attributes are accepted.
Slots
Attributes
heading (:string) - creates a heading. Defaults to nil.category (:string) - creates a category. Defaults to nil.category_color_class (:any) - sets a category color class. Defaults to "pc-card__category--primary".class (:any) - CSS class. Defaults to nil.- Global attributes are accepted.
Slots