From 0ac2cda0145aece416a185f2dbc95602979fb9b6 Mon Sep 17 00:00:00 2001 From: sellalone Date: Fri, 15 Mar 2019 11:20:40 +0100 Subject: [PATCH] Add default tags --- snippets/Modal.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snippets/Modal.md b/snippets/Modal.md index a5da9f916..de28e0ae1 100644 --- a/snippets/Modal.md +++ b/snippets/Modal.md @@ -1,8 +1,9 @@ ### Modal Renders a Modal component, controllable through events. +To use the component, import `Modal` only once and then display it by passing a boolean value to attribute `is-isVisible`. -`keydownHandler`, is a method which handles all the Keyboard events. +Define `keydownHandler`, a method which handles all the Keyboard events and according to your need you can dispatch any action like when Escape is pressed close modal. The Modal Component has following attributes: @@ -138,6 +139,6 @@ function App() { ReactDOM.render( , document.getElementById('root')); ``` - + \ No newline at end of file