Skip to content

Commit

Permalink
feat(web): add textarea field in property field (#1133)
Browse files Browse the repository at this point in the history
  • Loading branch information
airslice authored Sep 6, 2024
1 parent a8fef02 commit fc813b3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions web/src/beta/ui/fields/Properties/ProprtyField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
SelectField,
SpacingField,
SwitchField,
TextareaField,
TimePointField,
TwinInputField
} from "..";
Expand Down Expand Up @@ -92,6 +93,14 @@ const PropertyField: FC<Props> = ({
/>
) : schema.ui === "buttons" ? (
<p key={schema.id}>Button radio field</p>
) : schema.ui === "multiline" ? (
<TextareaField
key={schema.id}
commonTitle={schema.name}
value={(value as string) ?? ""}
description={schema.description}
onBlur={handleChange}
/>
) : (
<InputField
key={schema.id}
Expand Down

0 comments on commit fc813b3

Please sign in to comment.