diff --git a/src/autocomplete/Autocomplete.tsx b/src/autocomplete/Autocomplete.tsx index 0269ede0..5401989f 100644 --- a/src/autocomplete/Autocomplete.tsx +++ b/src/autocomplete/Autocomplete.tsx @@ -70,6 +70,10 @@ type autocompleteProps = { * you can style the look and feel of your hint text */ hintClass?: string; + /** + * if you want to pass an id to the hint + */ + hintId?: string; /** * if you want to pass an id to the result UL list */ @@ -154,6 +158,10 @@ type autocompleteProps = { * if a label is provided, it will provide the ability to style it */ labelClassName?: string; + /** + * allow to customise the label with all the properties needed + **/ + labelProps?: React.LabelHTMLAttributes; /** * it will pass an id to the input or select element(in case of progressive enhancement) */ @@ -231,6 +239,7 @@ export const Autocomplete = ({ defaultValue = '', hintText, hintClass, + hintId, multiSelect = false, notFoundText, resultId, @@ -253,6 +262,7 @@ export const Autocomplete = ({ containerClassName, labelText, labelClassName, + labelProps, id, errorPosition, errorMessageText = '', @@ -492,7 +502,7 @@ export const Autocomplete = ({ /> )} {labelText && ( -