Hero with Code Aside
The classic "developer-first marketing" hero: headline + lede + CTA on one side, ready-to-paste install command on the other. Combines <x-wirekit::hero>'s aside slot with <x-wirekit::code-block>.
Recipe
Hero with installable code aside
v1.3
Build Laravel UIs in minutes.
A full component library, full theming, GDPR-safe fonts. Open source. MIT licensed. Composable from day one.
Install
composer require pushery/wirekit
php artisan wirekit:installVariations
- Code → terminal screencast: Replace the
code-blockwith a<video>or animated GIF for a "show, don't tell" install flow. - Code → live preview iframe: For component libraries showcasing themselves, embed an actual live preview of one of the components instead of installation code.
layout="lead"for copy-heavy heroes: Switch from defaultbalanced(50/50) tolead(60/40) when the headline + lede dominate the message and the aside is supportive.
Components Used
- Hero —
eyebrow,title,lede,actions,asideslots;layoutprop - Badge — version pill in eyebrow
- Code Block —
:copy="true"announces "Code copied to clipboard" to screen readers - Button — primary + outline variants for CTA pair
See Also
- Hero component docs — all four
layoutvalues - Code Block accessibility — copy button live region