{value.map((file, index) => (
))}
@@ -208,45 +212,45 @@ export default function App() {
/>
-
+
-
-
-
+
+
+
-
-
+
+
-
+
diff --git a/packages/@holaplexui-react/package.json b/packages/@holaplexui-react/package.json
index 6d5f590..7e5071c 100644
--- a/packages/@holaplexui-react/package.json
+++ b/packages/@holaplexui-react/package.json
@@ -1,7 +1,7 @@
{
"name": "@holaplex/ui-library-react",
"author": "Holaplex Inc.",
- "version": "0.18.0",
+ "version": "0.19.0",
"description": "Holaplex react ui library components",
"private": false,
"files": [
diff --git a/packages/@holaplexui-react/src/components/Form.tsx b/packages/@holaplexui-react/src/components/Form.tsx
index ccbfa2c..c811ec5 100644
--- a/packages/@holaplexui-react/src/components/Form.tsx
+++ b/packages/@holaplexui-react/src/components/Form.tsx
@@ -8,6 +8,7 @@ import {
InputHTMLAttributes,
useState,
Fragment,
+ TextareaHTMLAttributes,
} from 'react';
import { Listbox, RadioGroup } from '@headlessui/react';
import { FieldError } from 'react-hook-form';
@@ -88,10 +89,11 @@ interface FormInputProps
className?: string;
icon?: JSX.Element;
error?: FieldError;
+ type?: string;
}
const FormInput = forwardRef(function FormInput(
- { className, icon, error, ...props }: FormInputProps,
+ { className, icon, error, type, ...props }: FormInputProps,
ref
) {
return (
@@ -99,7 +101,7 @@ const FormInput = forwardRef(function FormInput(
| undefined}
- type={props.type ?? 'text'}
+ type={type ?? 'text'}
className={clsx(
'w-full',
{
@@ -123,6 +125,29 @@ const FormInput = forwardRef(function FormInput(
});
Form.Input = FormInput;
+interface FormTextAreaProps
+ extends DetailedHTMLProps, HTMLTextAreaElement> {
+ className?: string;
+ error?: FieldError;
+}
+
+const FormTextArea = forwardRef(function FormTextArea(
+ { className, error, ...props }: FormTextAreaProps,
+ ref
+) {
+ return (
+
+
+ );
+});
+
+Form.TextArea = FormTextArea;
+
interface FormPasswordProps
extends DetailedHTMLProps, HTMLInputElement> {
className?: string;
diff --git a/packages/@holaplexui-react/src/components/Popover.tsx b/packages/@holaplexui-react/src/components/Popover.tsx
index 538d127..508ed82 100644
--- a/packages/@holaplexui-react/src/components/Popover.tsx
+++ b/packages/@holaplexui-react/src/components/Popover.tsx
@@ -36,7 +36,7 @@ export function PopoverBox({
});
return (
-
+
{({ open }) => (
<>