---
title: "ProseField"
description: "Подробная документация настраиваемых элементов API."
canonical_url: "https://b24-ui.bx-shef.by/docs/typography/field"
---
# ProseField

> Подробная документация настраиваемых элементов API.

## Использование

Поле, пропс или параметр для показа в содержимом.

```vue
<template>
  <p>
  <strong>
  name</strong>
   (
  <code>
  string</code>
  )
   
  <em>
  required</em>
  : description можно задать пропсом или в слоте по умолчанию — с полной поддержкой markdown.</p>
  <template v-slot:code=>
  <pre className=language-mdc shiki shiki-themes material-theme-lighter material-theme material-theme-palenight code=::field{name="name" type="string" required}
  `description` можно задать пропсом или в слоте по умолчанию — с полной поддержкой **markdown**.
     language=mdc meta= style=>
  <code __ignoreMap=>
  <span class=line>
  <span class=sMK4o>
  ::</span>
  <span class=swJcz>
  field</span>
  <span class=sMK4o>
  {</span>
  <span class=spNyl>
  name</span>
  <span class=sMK4o>
  =</span>
  <span class=sMK4o>
  "</span>
  <span class=sfazB>
  name</span>
  <span class=sMK4o>
  "</span>
  <span class=spNyl>
   type</span>
  <span class=sMK4o>
  =</span>
  <span class=sMK4o>
  "</span>
  <span class=sfazB>
  string</span>
  <span class=sMK4o>
  "</span>
  <span class=spNyl>
   required</span>
  <span class=sMK4o>
  }
  </span></span>
  <span class=line>
  <span class=sMK4o>
  `</span>
  <span class=sfazB>
  description</span>
  <span class=sMK4o>
  `</span>
  <span class=sTEyZ>
   можно задать пропсом или в слоте по умолчанию — с полной поддержкой </span>
  <span class=sHepR>
  **</span>
  <span class=so75L>
  markdown</span>
  <span class=sHepR>
  **</span>
  <span class=sTEyZ>
  .
  </span></span>
  <span class=line>
  <span class=sMK4o>
    </span></span></code></pre></template>
</template>
```

## API

### Пропсы

```ts
/**
 * Props for the ProseProseField component
 */
interface ProseProseFieldProps {
  /**
   * The element or component this component should render as.
   * @default 'div'
   */
  as?: any;
  /**
   * The name of the field.
   */
  name?: string | undefined;
  /**
   * Expected type of the field's value
   */
  type?: string | undefined;
  /**
   * Description of the field
   */
  description?: string | undefined;
  /**
   * Indicate whether the field is required
   */
  required?: boolean | undefined;
  b24ui?: { root?: SlotClass; container?: SlotClass; name?: SlotClass; wrapper?: SlotClass; required?: SlotClass; type?: SlotClass; description?: SlotClass; } | undefined;
}
```

### Слоты

```ts
/**
 * Slots for the ProseField component
 */
interface ProseFieldSlots {
  default(): any;
}
```

## Тема

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {}
  }
})
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
