diff --git a/demo/src/index.js b/demo/src/index.js index 54a38d6..5584c08 100644 --- a/demo/src/index.js +++ b/demo/src/index.js @@ -44,69 +44,71 @@ class App extends React.Component { } render() { - return
<MaskedInput/>
- A React component which creates a masked <input/>
<MaskedInput/>
+ A React component which creates a masked <input/>
You can even externally update the card state like a standard input element:
+Placeholders are automatically generated but can be overridden with your own:
+Mask placeholder characters can be escaped with a leading \ to use them as static contents:
Leading static characters:
+Changing patterns:
+Dynamically changing the pattern as the user types:
+Custom format character (W=[a-zA-Z0-9_], transformed to uppercase) and placeholder character (en space):
{JSON.stringify(this.state, null, 2)}
+ You can even externally update the card state like a standard input element:
-Placeholders are automatically generated but can be overridden with your own:
-Mask placeholder characters can be escaped with a leading \ to use them as static contents:
Leading static characters:
-Changing patterns:
-Dynamically changing the pattern as the user types:
-Custom format character (W=[a-zA-Z0-9_], transformed to uppercase) and placeholder character (en space):
{JSON.stringify(this.state, null, 2)}
-