Skip to content

No results for

navigate open Esc close
php artisan aura:add code

Copies the component source into resources/views/components/aura/. Run php artisan aura:init first if you haven't already. See the CLI guide for all options.

composer require bluestarsystem/aura-ui
php artisan aura:install

Full installation instructions in the Installation guide.

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.

Basic Usage

Run php artisan aura:install to publish the CSS.
Run <x-aura::code>php artisan aura:install</x-aura::code> to publish the CSS.
Run <x-aura::code>php artisan aura:install</x-aura::code> to publish the CSS.

Props

This component takes no props. Any attribute you pass is merged onto the <code> element.

Notes

For a whole snippet with its own block, use a fenced code block in Markdown or a <pre>. Inline code inside a paragraph should stay short — a full command line wrapped mid-sentence is harder to read than a block.