Sha256: 9b9cae6e6bf68316762543e16d69df07535df70b585ead3462e204fe13a4d823
Contents?: true
Size: 561 Bytes
Versions: 2
Compression:
Stored size: 561 Bytes
Contents
The `customDisplay` prop can be used to customize the display of the selected item by allowing devs to pass in a component that will be rendered to the left of the default text-based display. In this example the Avatar kit is being used. The `placeholder` prop can also be used to customize the placeholder text for the default Trigger. The `onSelect` prop is a function that gives the dev one argument: the selected option. In this example we are using the `onSelect` to set a state with the selected option and using it to customize the `customDisplay`.
Version data entries
2 entries across 2 versions & 2 rubygems