필드
필드 (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)
전체 사이트맵에서 모든 페이지를 확인할 수 있어요.