JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="https://unpkg.com/@uicapivara/cp-date@latest/dist/cp-date.min.css">
<script src="https://unpkg.com/@uicapivara/cp-date@1.0.2/dist/cp-date.min.js"></script>
<div>
<cp-date cp-model="$ctrl.pessoa.aniversario" format="'d/m/Y'" timepicker="false" min-date="'2018/05/10'"
max-date="'2018/06/10'"
></cp-date><br>
</div>
CSS
body,
html {
width: 100%;
height: 100%;
background: #F5F5F5;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
div.example {
width: 250px;
}
JavaScript
class MyController {
constructor() {
this.pessoa = {
'nome': 'Caio'
};
}
}
capivara.controller(document.body, MyController);