Documentation
Form Controls
renderSelection

renderSelection

This an example of the default selection rendering function. Based on that you can create your own renderSelection function.

By default T = SelectOptionDefault

import { SelectOptionDefault } from './types'
 
const _renderSelection = (value: T) => (value ? getOptionLabel(value) : <Placeholder>{placeholder}</Placeholder>)