Skip to content

Commit

Permalink
add props comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl11 committed Nov 6, 2024
1 parent 4c5678e commit 842ca7f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/src/atoms/InputField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,17 @@ export interface InputFieldProps {
size?: 'medium' | 'small'
/** react useRef to control input field instead of react event */
ref?: React.MutableRefObject<HTMLInputElement | null>
/** optional IconName to display icon aligned to left of input field */
leftIcon?: IconName
/** if true, show delete icon aligned to right of input field */
showDeleteIcon?: boolean
/** callback passed to optional delete icon onClick */
onDelete?: () => void
/** if true, style the background of input field to error state */
hasBackgroundError?: boolean
/** optional prop to override input field border radius */
borderRadius?: string
height?: string
/** optional prop to override input field padding */
padding?: string
}

Expand Down

0 comments on commit 842ca7f

Please sign in to comment.