Hey team! Need some help with text overflow in a Select component
Current Behavior:
- Using a Select component from [library name] for CIIU options
- Long option labels are causing overflow issues despite using overflow and word break properties
Current Implementation:
<Select
label=“CIIU a suscribir”
placeholder=“Seleccione CIIU”
value={ciiu}
onChange={(value) => setCiiu(value)}
required={true}
options={ciiuOptions} />
The dropdown width is set by your longest label in the options array. The component doesn’t offer wordbreak or overflow options. (Accounts Dashboard | HubSpot)
You may want to truncate the labels in the array to a consistent length before passing the array to the component.