Skip to main content
WireKit

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:install

Variations

  • Code → terminal screencast: Replace the code-block with 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 default balanced (50/50) to lead (60/40) when the headline + lede dominate the message and the aside is supportive.

Components Used

  • Heroeyebrow, title, lede, actions, aside slots; layout prop
  • 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