# View Row

<figure><img src="/files/7X2R1OS4rsO09LRW3RQR" alt=""><figcaption></figcaption></figure>

we all need to get a ready-to-use view item for our model, so we built this component to make it easy to use and customize.

### Use

you can use it like this

```html
<x-tomato-admin-row 
    :label="__('Name')" 
    :value="$model->name" 
    type="text" 
/>
```

or you can use it as a link like

```html
<x-tomato-admin-row 
    :label="__('Name')" 
    :value="$model->name" 
    :href="route('admin.users.index')" 
    icon="bx bx-user" 
    color="#fff" 
    type="badge" 
/>
```

and it's accepted on value just string value and you can use this types:

* text
* string
* rich
* number
* email
* tel
* badge `this type accept icon and color and href`
* date
* datetime
* time
* image
* images
* icon
* color
* bool
* copy
* password


---

# 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://docs.tomatophp.com/tomato-admin/components/view-row.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.
