@net-advantage/nabs-ui-datepicker
v0.63.0
Published
Reusable date picker control for the Nabs UI library.
Readme
nabs-ui-datepicker
Reusable React date picker control for the Nabs UI library.
Usage
import { DatePicker } from "@net-advantage/nabs-ui-datepicker";
export function Example() {
return (
<DatePicker
label="Due date"
labelPosition="top"
value="2026-06-17"
allowNull
onValueChange={(value) => console.log(value)}
/>
);
}Props
labelrenders an associated label above or beside the date input.labelPositionsupportsnone,top, andleft.inputClassNameapplies classes to the underlying<input>.labelClassNameapplies classes to the rendered<label>.allowNullcontrols whether clearing the value emitsnullinstead of an empty string.onValueChangeprovides a date string ornullwhenever the value changes.
The component forwards its ref to the underlying input element and re-exports DatePicker and DatePickerProps from the package entry point.
