defmodule PyrauiWeb.DocsLive.DatepickerDocs do use PyrauiWeb, :html def render(assigns) do ~H"""
Date Picker Inputs

DatePicker

Polished date and time inputs with leading icons, sizes, and variants.

Basics

Capture dates with helpful labels and defaults.

Variant: soft

Time & Date-Time

Use time-only or date-time inputs for scheduling.

Types: datetime, time

Variants & Sizes

Switch between soft and outline; choose a comfortable size.

Design tokens
Soft · sm
Soft · md
Outline · lg

Constraints & States

Guide users with min/max, helper text, and validation.

UX helpers

Props

Variants control borders and focus rings; sizes adjust padding and typography.

Prop Type Default Description
variant :soft | :outline :soft Visual style for the input.
size :sm | :md | :lg :md Padding and font-size scale.
icon boolean true Toggle calendar leading icon.
""" end end