flowbite-datepicker-1.3.0
Version:
A Tailwind CSS powered datepicker built with vanilla JavaScript and Flowbite
9 lines (6 loc) • 661 B
JavaScript
import {createTagRepeat, optimizeTemplateHTML} from '../../lib/utils.js';
const daysTemplate = optimizeTemplateHTML(`<div class="days">
<div class="days-of-week grid grid-cols-7 mb-1">${createTagRepeat('span', 7, {class: 'dow block flex-1 leading-9 border-0 rounded-lg cursor-default text-center text-gray-900 font-semibold text-sm'})}</div>
<div class="datepicker-grid w-64 grid grid-cols-7">${createTagRepeat('span', 42 , {class: 'block flex-1 leading-9 border-0 rounded-lg cursor-default text-center text-gray-900 font-semibold text-sm h-6 leading-6 text-sm font-medium text-gray-500 dark:text-gray-400'})}</div>
</div>`);
export default daysTemplate;