This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch docs/federate-storybook
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/docs/federate-storybook by 
this push:
     new ae6ce4dda8 fix(docs): use showNow instead of showToday for DatePicker 
with time
ae6ce4dda8 is described below

commit ae6ce4dda8da9e9c5b6935f8e6f31f8acf47105b
Author: Evan Rusackas <[email protected]>
AuthorDate: Tue Jan 20 19:28:43 2026 -0800

    fix(docs): use showNow instead of showToday for DatePicker with time
    
    When showTime is enabled, the "Today" button is replaced by "Now".
    The showToday prop has no effect - showNow controls the "Now" button.
    
    Co-Authored-By: Claude Opus 4.5 <[email protected]>
---
 docs/developer_portal/components/ui/datepicker.mdx | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/docs/developer_portal/components/ui/datepicker.mdx 
b/docs/developer_portal/components/ui/datepicker.mdx
index d161b9b3bd..e961ede71a 100644
--- a/docs/developer_portal/components/ui/datepicker.mdx
+++ b/docs/developer_portal/components/ui/datepicker.mdx
@@ -34,7 +34,7 @@ The DatePicker component from Superset's UI library.
   component="DatePicker"
   props={{
   placeholder: "Select date",
-  showToday: true,
+  showNow: true,
   allowClear: false,
   autoFocus: true,
   disabled: false,
@@ -43,7 +43,6 @@ The DatePicker component from Superset's UI library.
   picker: "date",
   placement: "bottomLeft",
   size: "middle",
-  showNow: true,
   showTime: {
     format: "hh:mm a",
     needConfirm: false
@@ -56,9 +55,10 @@ The DatePicker component from Superset's UI library.
     type: "text"
   },
   {
-    name: "showToday",
-    label: "Show Today",
-    type: "boolean"
+    name: "showNow",
+    label: "Show Now",
+    type: "boolean",
+    description: "Show \"Now\" button to select current date and time."
   }
 ]}
 />
@@ -73,7 +73,7 @@ function Demo() {
     <DatePicker
       placeholder="Select date"
       format="YYYY-MM-DD hh:mm a"
-      showToday
+      showNow
       showTime={{ format: 'hh:mm a', needConfirm: false }}
     />
   );
@@ -85,7 +85,7 @@ function Demo() {
 | Prop | Type | Default | Description |
 |------|------|---------|-------------|
 | `placeholder` | `string` | `"Select date"` | - |
-| `showToday` | `boolean` | `true` | - |
+| `showNow` | `boolean` | `true` | Show "Now" button to select current date 
and time. |
 | `allowClear` | `boolean` | `false` | - |
 | `autoFocus` | `boolean` | `true` | - |
 | `disabled` | `boolean` | `false` | - |
@@ -94,7 +94,6 @@ function Demo() {
 | `picker` | `string` | `"date"` | - |
 | `placement` | `string` | `"bottomLeft"` | - |
 | `size` | `string` | `"middle"` | - |
-| `showNow` | `boolean` | `true` | - |
 | `showTime` | `any` | `{"format":"hh:mm a","needConfirm":false}` | - |
 
 ## Import

Reply via email to