Label

Renders an accessible label associated with controls.

<div class="flex items-center space-x-2">
<x-checkbox id="terms" />
<x-label htmlFor="terms">Accept terms and conditions</x-label>
</div>

Installation

php artisan vendor:publish --tag=label --force

Usage

<x-label htmlFor="email">Your email address</x-label>