beginnings of new api
This commit is contained in:
14
src.new/components/text.tsx
Normal file
14
src.new/components/text.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { ReactNode } from "react"
|
||||
import React from "react"
|
||||
|
||||
export type TextProps = {
|
||||
children?: ReactNode
|
||||
}
|
||||
|
||||
export const TextTag = "reacord-text"
|
||||
|
||||
export function Text(props: TextProps) {
|
||||
return React.createElement(TextTag, props)
|
||||
}
|
||||
|
||||
export class TextElementNode {}
|
||||
Reference in New Issue
Block a user