# View Row

<figure><img src="https://117397612-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSlG6RrSDmGrQX2xjM6AT%2Fuploads%2FEb69c6GLTUwsU6VKlUzb%2Fimage.png?alt=media&#x26;token=77c782c4-6097-4ebc-b26a-db2a93753331" 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
