diff --git a/docs/Inputs.md b/docs/Inputs.md index e9b620929e2..ac4e8afb4db 100644 --- a/docs/Inputs.md +++ b/docs/Inputs.md @@ -1338,6 +1338,28 @@ const choices = [ ]; ``` +You can render any item as disabled by setting its `disabled` property to `true`: + +```jsx +const choices = [ + { _id: 123, full_name: 'Leo Tolstoi', sex: 'M' }, + { _id: 456, full_name: 'Jane Austen', sex: 'F' }, + { _id: 1, full_name: 'System Administrator', sex: 'F', disabled: true }, +]; + +``` + +You can use a custom field name by setting the `disableValue` prop: + +```jsx +const choices = [ + { _id: 123, full_name: 'Leo Tolstoi', sex: 'M' }, + { _id: 456, full_name: 'Jane Austen', sex: 'F' }, + { _id: 987, full_name: 'Jack Harden', sex: 'M', not_available: true }, +]; + +``` + Lastly, use the `options` attribute if you want to override any of the `