본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

필드

원문 보기 위키 갱신

필드 (ProseField)

API의 파라미터, props, 설정 옵션을 문서화할 때 사용하는 타이포그래피 컴포넌트예요. 콘텐츠 안에서 필드, prop, 파라미터를 명확하게 정리해서 보여줄 수 있어요.

출처: Nuxt UI

본문

사용법 (Usage)

콘텐츠 안에 표시할 필드(field), prop 또는 파라미터를 정의할 때 사용해요.

::field{name="name" type="string" required}
The `description` can be set as prop or in the default slot with full **markdown** support.
::

API

Props

/**
 * 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;
  ui?: { root?: SlotClass; container?: SlotClass; name?: SlotClass; wrapper?: SlotClass; required?: SlotClass; type?: SlotClass; description?: SlotClass; } | undefined;
}

Slots

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

테마 (Theme)

export default defineAppConfig({
  ui: {
    prose: {}
  }
})

변경 내역 (Changelog)

컴포넌트와 테마의 커밋 기록을 확인해 보세요.


사이트맵 (Sitemap)

전체 사이트맵에서 모든 페이지를 확인할 수 있어요.

더 알아보기 (Learn more)