Autocomplete, and more CM stuff!

This commit is contained in:
Gregory Schier
2023-02-28 22:54:54 -08:00
parent aebfcb9437
commit 0d671423da
20 changed files with 220 additions and 178 deletions

View File

@@ -1,4 +1,4 @@
import { InputHTMLAttributes, ReactNode } from 'react';
import type { InputHTMLAttributes, ReactNode } from 'react';
import classnames from 'classnames';
import { HStack, VStack } from './Stacks';
import Editor from './Editor/Editor';
@@ -11,6 +11,7 @@ interface Props extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'on
containerClassName?: string;
onChange?: (value: string) => void;
onSubmit?: () => void;
useTemplating?: boolean;
useEditor?: boolean;
leftSlot?: ReactNode;
rightSlot?: ReactNode;
@@ -24,6 +25,7 @@ export function Input({
containerClassName,
labelClassName,
onSubmit,
useTemplating,
size = 'md',
useEditor,
onChange,
@@ -61,6 +63,7 @@ export function Input({
<Editor
id={id}
singleLine
useTemplating
contentType="url"
defaultValue={defaultValue}
onChange={onChange}