Laravel Code Component
Free · MITInline code inside running text.
A Code built for the TALL stack — Blade, Livewire 3 & 4, Alpine.js and Tailwind CSS 4.
Server-rendered by default and dark-mode ready. Aura's solid-background and border colours are
contrast-tested against WCAG 2.1 AA/UI in CI, in both themes —
see what's covered.
Drop it in with a single Blade tag:
<x-aura::code>
Installation
composer require bluestarsystem/aura-ui
Usage
Run <x-aura::code>php artisan aura:install</x-aura::code> to publish the CSS.
See the full API, props and live examples in the Code documentation.
Overview
<x-aura::code> marks a fragment as code inside a sentence — a command, a class name, a config key. It renders a real <code> element, so assistive technology and search engines know what it is.
Props
This component takes no props. Any attribute you pass is merged onto the <code> element.
See more examples and every variant in the Code documentation.