Skip to main content
Exit fullscreen Esc

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 recording: Replace the code-block with a <video> of the install, with controls, so a reader can pause what moves (WCAG 2.2.2).
  • 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 — the "New" pill in the eyebrow
  • Code Block — :copy="true" announces "Code copied to clipboard" to screen readers
  • Button — primary + outline variants for CTA pair

See Also