# Labels

```php
//visibility
hideLabel()

//text slots
labelSuffix(string $word)
afterLabel(string $text)
afterLabel(string $text)
labelSuffix(string $string) //Example labelSuffix('(*)') for required fields

//styling
labelWidth(string $class) //Used only on inline forms. Default = sm:w-1/3
labelAlign(string $class)
labelClass(string $classes, $merge = true) //merge with default classes or not
labelWrapperClass(string $classes)
```

![](https://github.com/tanthammar/tall-forms/wiki/label-suffix.png)

#### Example

```
Input::make('Label')
    ->afterLabel('After label')
    ->labelSuffix('suffix')
    ->rules('required|string'),
```

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tina-hammar.gitbook.io/tall-forms/field/labels.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
