-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui/system): slottable 개념 도입 (#199)
* feat(ui/system): Slottable 컴포넌트 추가 * feat(ui/system/slottable.tsx): Slottable 컴포넌트 type 분리 * feat(ui/system/create-polymorphic-component.ts): Slottable 상황 추가
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { type ReactNode } from 'react'; | ||
|
||
export type SlottableProps = { | ||
children: ReactNode; | ||
}; | ||
|
||
export function Slottable(props: SlottableProps) { | ||
const { children } = props; | ||
|
||
return children; | ||
} |