1.1.15 • Published 3 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
3 years ago
1.1.15
3 years ago
1.1.13
3 years ago
1.1.7
3 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1-beta.3
4 years ago
1.1.1-beta.2
4 years ago
1.1.1-beta.1
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.0
4 years ago
0.1.6
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.1
4 years ago
0.0.3
4 years ago