Skip to content

Commit

Permalink
fix: optional post input content prop for Field (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadbrokaw authored Aug 7, 2024
1 parent dc7c27e commit 4533ac0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/forms/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export interface FieldProps {
hidden?: boolean
labelClassName?: string
bordered?: boolean
postInputContent?: JSX.Element
}

const Field = (props: FieldProps) => {
Expand Down Expand Up @@ -179,6 +180,7 @@ const Field = (props: FieldProps) => {
{...inputProps}
hidden={props.hidden}
/>
{props.postInputContent}
{isRadioOrCheckbox && label}
</div>
{props.subNote && <p className="field-sub-note">{props.subNote}</p>}
Expand Down

0 comments on commit 4533ac0

Please sign in to comment.