Dear. I have a modal with a list but it does not show the complete list, how is it possible to make a drop-down (Scrollable ) modal?
Thanks in advance.
export const Categorias: React.FC = () => {
const [showModal, setShowModal] = useState(false);
return (
<div id="columna3">
<IonModal isOpen={showModal} cssClass='my-custom-class' animated={true} backdropDismiss={true}>
<IonIcon icon={closeCircle} onClick={() => setShowModal(false)}></IonIcon>
<div id="contenedor-central" >
<IonList>
<IonItem>
<IonLabel>Pokémon Yellow</IonLabel>
</IonItem>
<IonItem>
<IonLabel>Mega Man X</IonLabel>
</IonItem>
<IonItem>
<IonLabel>The Legend of Zelda</IonLabel>
</IonItem>
<IonItem>
<IonLabel>Pac-Man</IonLabel>
</IonItem>
<IonItem>
<IonLabel>Super Mario World</IonLabel>
</IonItem>
</IonList>
</div>
<IonButton onClick={() => setShowModal(false)}>Registrarse</IonButton>
</IonModal>
<IonChip onClick={() => setShowModal(true)} >
<IonIcon icon={chevronDown}/>
<IonLabel>Categorias</IonLabel>
</IonChip>
</div>
);
};
2 posts - 2 participants