@php
$examples = [
'Outlined and filled text fields' => <<<'BLADE'
BLADE,
'Errors, required and sizes' => <<<'BLADE'
BLADE,
'Width at medium and above' => <<<'BLADE'
{{-- M3: never let a text field span the full width of a large screen. From medium it stops at 40rem. --}}
BLADE,
'Character counter' => <<<'BLADE'
BLADE,
'Textarea and select' => <<<'BLADE'
BLADE,
'Checkboxes' => <<<'BLADE'
BLADE,
'A checkbox group at expanded' => <<<'BLADE'
{{-- M3: from expanded (840px), gather related checkboxes into a contained region instead of one long column. --}}
BLADE,
'Radio buttons' => <<<'BLADE'
BLADE,
'Switches' => <<<'BLADE'
BLADE,
'Choices' => <<<'BLADE'
BLADE,
'Search' => <<<'BLADE'
AR
{{-- M3's resting bar is 360px and grows to 720 while focused; --search-width sets the resting one. --}}
Type to search your settings.
BLADE,
'Search entry points and suggestions' => <<<'BLADE'
{{-- M3's search icon button: search as a secondary action, expanding into the full-screen view. --}}
SharesNo shares match.
BLADE,
'A form' => <<<'BLADE'
BLADE,
];
@endphp
Text fields and selection
<x-input>, <x-password>, <x-textarea>, <x-select>, <x-file>
(all on <x-field>, outlined or filled), <x-checkbox>, <x-radio>, <x-toggle>, <x-choices>, <x-search> and <x-form>.
@foreach ($examples as $title => $code)
@endforeach