I am trying to change the direction of the way the accordion element in react-bootstrap moves. Currently it moves down. Is there a simple way to make it open in the up direction?
Below is an example of one of my components. I want to be able to open it in the upwards direction as opposed to downward, the reason being that I have placed it on the bottom of the screen and so when I open it in default settings it goes down as opposed to up:
import React from 'react';
import { Accordion, Card, Button } from 'react-bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
const InfoBox = ( props ) => {
const Styles = {
width: "100%",
marginTop: "147%"
}
return (
<div style={Styles}>
<Accordion>
<Card>
<Card.Header>
<Accordion.Toggle as={Button} variant="link" eventKey="0">
Link Info
</Accordion.Toggle>
</Card.Header>
<Accordion.Collapse eventKey="0">
<Card.Body>
<div>{`Link Address: ${props.sa}`}</div>
<div>{`community board: ${props.cb}`}</div>
<div>{`lat: ${props.lat}`}</div>
<div>{`lon: ${props.lon}`}</div>
</Card.Body>
</Accordion.Collapse>
</Card>
</Accordion>
</div>
)
};
export default InfoBox;