Files
reacord/src/components/text.tsx
2021-12-22 10:35:55 -06:00

15 lines
303 B
TypeScript

import type { ReactNode } from "react"
import React from "react"
export type TextProps = {
children?: ReactNode
}
export function Text(props: TextProps) {
return (
<reacord-element createNode={() => ({ type: "textElement", children: [] })}>
{props.children}
</reacord-element>
)
}