Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

docs(cli): rename misleading DateInput 'Date Range' example (#3185)

Durvesh Pilankar691693cd03bf
diff --git a/.changeset/dateinput-example-rename.md b/.changeset/dateinput-example-rename.md
new file mode 100644
index 0000000000..484031a7f1
--- /dev/null
+++ b/.changeset/dateinput-example-rename.md
@@ -0,0 +1,6 @@
+---
+'@astryxdesign/cli': patch
+---
+
+[docs] Rename the DateInput "Date Range" example to "Min/Max Constraints" — it demos a single input constrained to a min/max window, not a date-range picker (#2692)
+@durvesh1992
diff --git a/packages/cli/templates/blocks/components/DateInput/DateInputDateRange.doc.mjs b/packages/cli/templates/blocks/components/DateInput/DateInputDateRange.doc.mjs
index b1bf5ee393..18f6bd7bff 100644
--- a/packages/cli/templates/blocks/components/DateInput/DateInputDateRange.doc.mjs
+++ b/packages/cli/templates/blocks/components/DateInput/DateInputDateRange.doc.mjs
@@ -4,8 +4,8 @@
export const doc = {
type: 'block',
exampleFor: 'DateInput',
- name: 'DateInput — Date Range',
- displayName: 'DateInput — Date Range',
+ name: 'DateInput — Min/Max Constraints',
+ displayName: 'DateInput — Min/Max Constraints',
description:
'Date input constrained to a min/max window. Use when only certain dates are valid, like booking availability or a fiscal quarter.',
isReady: true,