Hi NGUYEN,
Greetings from Syncfusion support.
We have validated the shared React Chip component sample. We
understand that you want to render all the chips in a single line with a
horizontal scroll bar. To meet this requirement, we suggest you use the below
CSS style and set the scroll bar horizontally. We have attached the modified
sample for your reference.
Refer the below code snippet.
|
[App.js]
return (
<header className="App-header">
<div
style={{
backgroundColor: "rgb(216, 137, 137)",
display: "inline-flex",
width: "500px",
height: "50px",
overflow: "scroll",
overflowY:"hidden",
verticalAlign: "middle",
}}
>
<ChipListComponent
selection="Multiple"
chips={listChip}
style={{
flexWrap:"nowrap",
}}
></ChipListComponent>
</div>
</header>
);
|
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/syncfusion-chips-843892440.zip
Please check the attached sample and get back to us if you
need any further assistance.
Regards,
Sivakumar S