---
title: "label"
description: "Accessible form label."
category: "Forms"
---
# label
Accessible form label.
## Installation
```bash
php artisan ui:add label
```
## Dependencies
- composer: `gehrisandro/tailwind-merge-laravel`
## Usage
```blade
Email
```
## Example
The demo rendered on the docs page.
```blade
Full name
```
## Source
Copy this file to the path shown above it.
`resources/views/components/ui/label.blade.php`
```blade
@props([])
@php
$classes = \TailwindMerge\Laravel\Facades\TailwindMerge::merge(
'flex select-none items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50',
$attributes->get('class'),
);
@endphp
```
## Theme tokens
Pair with `for` to associate with an input.