import React, { Fragment, useContext } from 'react'; import { Button, Card, CardBody, Table } from 'reactstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import PageHeader from '../common/PageHeader'; import FalconCardHeader from '../common/FalconCardHeader'; import CodeHighlight from '../common/CodeHighlight'; import AppContext from '../../context/Context'; const Sidepanel = () => { const { toggleModal } = useContext(AppContext); return (

Falcon Sidepanel uses Boostrap Modal features to show the panel content. .modal-fixed-right and .modal-dialog-vertical classes are used to stick the panel at the right side and animate the panel from right to left.

// Heder Content //Body Content `} />

{' '} You can pass options via Props through Sidepanel component. It will decide whether the panel is shown or remain hidden when the page loads.

Option Type Defaults Description
autoShow {' '} Boolean {' '} false Set true to make the Slidepanel show automatically after the page is loaded.
autoShowDelay Number {' '} 3000 How much time (ms) should wait after the page is loaded before showing the Sidepanel. Works only when the autoShow is set true
showOnce Boolean false The Sidepanel will show only once - for the first time when a user view the website and remain hidden as per the cookie expiration date.
cookieExpireTime {' '} Number {' '} 7200000 After how many time (ms) the cookie will expired.
); }; export default Sidepanel;