1.1.15 • Published 2 years ago
react-spring-dialog v1.1.15
React Spring Dialog
A simple, accessible and performant Dialog component powered by
react-spring
.
Features
- Excelent performances thanks to
react-spring
. - Accessibility ready thanks to the use of
focus-trap-react
among other things. - Easy to style and to configure: no more headaches or hacky things trying to make the Dialog looks like we want.
Install
npm install --save react-spring-dialog
or
yarn add react-spring-dialog
How to use it
import { Dialog } from 'react-spring-dialog'
export function Component() {
const [isActive, setIsActive] = useState(true)
return (
<Dialog isActive={isActive} onClose={() => setIsActive(false)}>
<div>Dialog content</div>
<button onClick={() => setIsActive(false)}>CLOSE</button>
</Dialog>
)
}
Official documentation
1.1.8
2 years ago
1.1.15
2 years ago
1.1.13
2 years ago
1.1.7
2 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1-beta.3
3 years ago
1.1.1-beta.2
3 years ago
1.1.1-beta.1
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.0
3 years ago
0.1.6
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.1
3 years ago
0.0.3
3 years ago