Card
A flexible container component for grouping related content. Supports multiple variants including flat, hoverable, and elevated styles with optional headers and footers.
Preview & Code
_card.html.erb
███
████ █████████ █████████
██████
███ ██████ █████████████████ ██ ██
████ ███████ ████
██ ███ ██
███ ██████ ██████████████████ ████████ ███████ ████████ ███ ██ ██
█████████ ████ ████ █████ ███████
card_component.rb
█ ██████████████████████ ████
█████ █████████████ █ ███████████████████
████████ █ ███████ █████ ████████████████
████████ █ ███████ ██ ██ ██████████
███████████ ███████
███████████ ███████
███ ███████████████████ ██████ ████████ ████ ████████████████
card_component.html.erb
████ ██████████ ████████████ ████
██ ██ ███████ ██
████ ███████████████ ████████████████ █████ █████ ████ ████ ████ ████████████ ███████████████████████
███ ██████ ██
██████
██ ███ ██
███ ███████ ██
██ ██ ███████ ██
Changelog
- Initial release with flat, hover, and elevated variants
- Optional header and footer slots
- Customizable padding options
Get Full Access
Unlock the source code for this component and all others. One-time payment for lifetime access.
Get Access Now