Back to React

This commit is contained in:
Gregory Schier
2023-03-13 09:50:49 -07:00
parent 03461ffa77
commit 90c873e37e
25 changed files with 377 additions and 616 deletions

View File

@@ -1,5 +1,5 @@
import classnames from 'classnames';
import type { ComponentChildren } from 'preact';
import type { ReactNode } from 'react';
import type { EditorProps } from './Editor';
import { Editor } from './Editor';
import { HStack, VStack } from './Stacks';
@@ -13,8 +13,8 @@ interface Props {
onChange?: (value: string) => void;
useEditor?: Pick<EditorProps, 'contentType' | 'useTemplating'>;
defaultValue?: string;
leftSlot?: ComponentChildren;
rightSlot?: ComponentChildren;
leftSlot?: ReactNode;
rightSlot?: ReactNode;
size?: 'sm' | 'md';
className?: string;
placeholder?: string;