---
title: "Field"
canonical_url: "https://nnsvn.me/products/nuxt-starter-kit/components/docs/field"
---

> Index of every page on this site: [llms.txt](https://nnsvn.me/llms.txt)

## Usage

<ct-stack>
<div className="p-4">
<ct-field name="Field" type="string" :required="true" default-value="'default'">

The *description* can be set as prop or in the default slot with full **markdown** support.

</ct-field>
</div>

```mdc
::ct-field{name="Field" type="string" defaultValue="'default'" required}
The _description_ can be set as prop or in the default slot with full **markdown** support.
::
```

</ct-stack>

The text `required` is configurable in [`main.fieldRequiredText`](https://nnsvn.me/products/nuxt-starter-kit/api/configuration/shadcn-docs#main).

## Props

<ct-field-group>
<ct-field name="name" type="string">

Field name

</ct-field>

<ct-field name="type" type="string">

Field type

</ct-field>

<ct-field name="description" type="string">

Field description

</ct-field>

<ct-field name="defaultValue" type="string">

Field default value

</ct-field>

<ct-field name="required" type="boolean">

Whether the field is required

</ct-field>
</ct-field-group>

## Sitemap

See the full [sitemap](https://nnsvn.me/sitemap.md) for all pages.
