diff --git a/apps/website/pages/components/date-input/code.tsx b/apps/website/pages/components/date-input/code.tsx new file mode 100644 index 0000000000..29148ee61e --- /dev/null +++ b/apps/website/pages/components/date-input/code.tsx @@ -0,0 +1,19 @@ +import Head from "next/head"; +import type { ReactElement } from "react"; +import DateInputCodePage from "screens/components/date-input/code/DateInputCodePage"; +import DateInputPageLayout from "screens/components/date-input/DateInputPageLayout"; + +const Code = () => { + return ( + <> +
+label is
+ provided.
+ autocomplete attribute. Lets the user specify if any permission the user agent has to
+ provide automated assistance in filling out the input value. Its value must be one of all the possible
+ values of the HTML autocomplete attribute. See{" "}
+ onBlur and{" "}
- onChange functions when it has not been filled.
+ error will be undefined. Also, if the string value is not a valid date, date{" "}
+ will be undefined.
error will be undefined. Also, if the string value is not a valid date, date{" "}
- will be undefined.
+ If true, the date will be optional, showing the text '(Optional)' next to the label. Otherwise, the field
+ will be considered required and an error will be passed as a parameter to the onBlur and{" "}
+ onChange functions when it has not been filled.
+ autocomplete attribute. Lets the user specify if any permission the user agent has to
- provide automated assistance in filling out the input value. Its value must be one of all the possible
- values of the HTML autocomplete attribute. See{" "}
- label is
- provided.
+ Value of the input element. If undefined, the component will be uncontrolled and the value will be managed
+ internally by the component.
color, typography, border, spacing,{" "}
- width and margin specifications are inherited from the text input, for reference
- check{" "}
-
- small is not available
- pickerBackgroundColor
- color-white
- pickerFontColor
- color-black
- pickerBorderColor
- color-grey-400
- pickerSelectedBackgroundColor
- color-purple-700
- pickerSelectedFontColor
- color-white
- pickerHoverBackgroundColor
- color-purple-200
- pickerHoverFontColor
- color-black
- pickerActiveBackgroundColor
- color-purple-800
- pickerActiveFontColor
- color-white
- pickerNonCurrentMonthFontColor
- color-grey-500
- pickerCurrentDateBorderColor
- color-purple-300
- pickerCurrentDateFontColor
- color-black
- pickerCurrentYearFontColor
- color-purple-700
- pickerHeaderBackgroundColor
- color-transparent
- pickerHeaderFontColor
- color-black
- pickerHeaderHoverBackgroundColor
- color-purple-200
- pickerHeaderHoverFontColor
- color-black
- pickerHeaderActiveBackgroundColor
- color-purple-800
- pickerHeaderActiveFontColor
- color-white
- pickerFocusColor
- color-blue-600
- pickerBorderWidth
- border-width-1
- pickerBorderStyle
- border-style-solid
- pickerFocusWidth
- border-width-2
- pickerCurrentDateBorderWidth
- border-width-1
- pickerFontFamily
- font-family-sans
- pickerFontSize
- font-scale-02
- pickerFontWeight
- font-regular
- pickerInteractedYearFontSize
- font-scale-05
- pickerHeaderFontSize
- font-scale-02
- mm/dd/yyyy.
- dd/mm/yyyy.
- yyyy/mm/dd.
-