Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-simple-offcanvas
Advanced tools
A stand-alone react component for adding accessible easy-to-use bootstrap Tabs to your project.
React component for adding a hidden sidebars to your project. Simply this is a Bootstrap 5 Offcanvas component but without installing any dependencies.
npm i react-simple-offcanvas
yarn add react-simple-offcanvas
import React from 'react'
import { OffcanvasProvider, Trigger, Offcanvas } from 'react-simple-offcanvas'
export default function App() {
return (
<OffcanvasProvider { /* Provider props */ }>
<Trigger { /* Trigger props */ } />
<Offcanvas { /* Offcanvas props */ } />
</OffcanvasProvider>
)
}
Prop | Type | Options | Description | Default |
---|---|---|---|---|
onOpen | Function | Optional | Callback function that is triggered when the Offcanvas is opened | - |
onClose | Function | Optional | Callback function that is triggered when the Offcanvas is closed | - |
Prop | Type | Options | Description | Default |
---|---|---|---|---|
component | String | Optional | Render Component button | div | button |
className | String | Optional | CSS className applied to the Trigger Block | offcanvas-trigger |
styles | CSSProperties | Optional | Inline style | {} |
children | ReactNode | Optional | Component children | - |
Prop | Type | Options | Description | Default |
---|---|---|---|---|
title | String | Optional | Offcanvas Title (h5 Tag) | Offcanvas Title |
position | String | Optional | left | right | top | bottom | right |
backdrop | boolean | Optional | Apply a backdrop on body while offcanvas is open | true |
allowClickAway | boolean | Optional | Closes the offcanvas when user click outside | true |
allowEsc | boolean | Optional | Closes the offcanvas when escape key is pressed | true |
allowScroll | boolean | Optional | Allow body scrolling while offcanvas is open | true |
className | String | Optional | CSS className applied to the Offcanvas Block | simple-offcanvas |
styles | CSSProperties | Optional | Inline style | {} |
children | ReactNode | Optional | Component Children | Some text as placeholder |
MIT © awran5
FAQs
A stand-alone react component for adding accessible easy-to-use bootstrap Tabs to your project.
The npm package react-simple-offcanvas receives a total of 273 weekly downloads. As such, react-simple-offcanvas popularity was classified as not popular.
We found that react-simple-offcanvas demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.