컴포넌트 추가방식 변경
This commit is contained in:
40
frontend/lib/registry/components/radio-basic/index.ts
Normal file
40
frontend/lib/registry/components/radio-basic/index.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
"use client";
|
||||
|
||||
import React from "react";
|
||||
import { createComponentDefinition } from "../../utils/createComponentDefinition";
|
||||
import { ComponentCategory } from "@/types/component";
|
||||
import type { WebType } from "@/types/screen";
|
||||
import { RadioBasicWrapper } from "./RadioBasicComponent";
|
||||
import { RadioBasicConfigPanel } from "./RadioBasicConfigPanel";
|
||||
import { RadioBasicConfig } from "./types";
|
||||
|
||||
/**
|
||||
* RadioBasic 컴포넌트 정의
|
||||
* radio-basic 컴포넌트입니다
|
||||
*/
|
||||
export const RadioBasicDefinition = createComponentDefinition({
|
||||
id: "radio-basic",
|
||||
name: "라디오 버튼",
|
||||
nameEng: "RadioBasic Component",
|
||||
description: "단일 옵션 선택을 위한 라디오 버튼 그룹 컴포넌트",
|
||||
category: ComponentCategory.INPUT,
|
||||
webType: "radio",
|
||||
component: RadioBasicWrapper,
|
||||
defaultConfig: {
|
||||
placeholder: "입력하세요",
|
||||
},
|
||||
defaultSize: { width: 120, height: 24 },
|
||||
configPanel: RadioBasicConfigPanel,
|
||||
icon: "Edit",
|
||||
tags: [],
|
||||
version: "1.0.0",
|
||||
author: "개발팀",
|
||||
documentation: "https://docs.example.com/components/radio-basic",
|
||||
});
|
||||
|
||||
// 타입 내보내기
|
||||
export type { RadioBasicConfig } from "./types";
|
||||
|
||||
// 컴포넌트 내보내기
|
||||
export { RadioBasicComponent } from "./RadioBasicComponent";
|
||||
export { RadioBasicRenderer } from "./RadioBasicRenderer";
|
||||
Reference in New Issue
Block a user