Skip to main content
Copy for LLM

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
New

Laravel UI components, two commands away.

Components themed by your design tokens, fonts served from your own domain, and an MIT license.

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

  • Hero — eyebrow, 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