text: (self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[361],{45778:(e,t,n)=>{"use strict";n.r(t),n.d(t,{frontMatter:()=>i,metadata:()=>l,toc:()=>p,default:()=>u});var r=n(29603),a=n(50120),o=(n(27378),n(35318)),i={id:"useinputoptions",title:"Interface: UseInputOptions",sidebar_label:"UseInputOptions",sidebar_position:0,custom_edit_url:null},l={unversionedId:"api/interfaces/useinputoptions",id:"api/interfaces/useinputoptions",isDocsHomePage:!1,title:"Interface: UseInputOptions",description:"Properties",source:"@site/docs/api/interfaces/useinputoptions.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/useinputoptions",permalink:"/api/interfaces/useinputoptions",editUrl:null,version:"current",sidebar_label:"UseInputOptions",sidebarPosition:0,frontMatter:{id:"useinputoptions",title:"Interface: UseInputOptions",sidebar_label:"UseInputOptions",sidebar_position:0,custom_edit_url:null},sidebar:"sidebar",previous:{title:"Interface: UseInputFieldProps",permalink:"/api/interfaces/useinputfieldprops"},next:{title:"Interface: WeekNumberProps",permalink:"/api/interfaces/weeknumberprops"}},p=[{value:"Properties",id:"properties",children:[{value:"defaultSelected",id:"defaultselected",children:[]},{value:"format",id:"format",children:[]},{value:"fromDate",id:"fromdate",children:[]},{value:"fromMonth",id:"frommonth",children:[]},{value:"fromYear",id:"fromyear",children:[]},{value:"locale",id:"locale",children:[]},{value:"required",id:"required",children:[]},{value:"toDate",id:"todate",children:[]},{value:"toMonth",id:"tomonth",children:[]},{value:"toYear",id:"toyear",children:[]},{value:"today",id:"today",children:[]}]}],s={toc:p};function u(e){var t=e.components,n=(0,a.Z)(e,["components"]);return(0,o.kt)("wrapper",(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h2",{id:"properties"},"Properties"),(0,o.kt)("h3",{id:"defaultselected"},"defaultSelected"),(0,o.kt)("p",null,"\u2022 ",(0,o.kt)("inlineCode",{parentName:"p"},"Optional")," ",(0,o.kt)("strong",{parentName:"p"},"defaultSelected"),": ",(0,o.kt)("inlineCode",{parentName:"p"},"Date")),(0,o.kt)("p",null,"The default selected day."),(0,o.kt)("hr",null),(0,o.kt)("h3",{id:"format"},"format"),(0,o.kt)("p",null,"\u2022 ",(0,o.kt)("inlineCode",{parentName:"p"},"Optional")," ",(0,o.kt)("strong",{parentName:"p"},"format"),": ",(0,o.kt)("inlineCode",{parentName:"p"},"string")),(0,o.kt)("p",null,"The format string for formatting the input field. See ",(0,o.kt)("a",{parentName:"p",href:"https://date-fns.org/docs/format"},"https://date-fns.org/docs/format")," for a list of format strings. Default to ",(0,o.kt)("inlineCode",{parentName:"p"},"PP"),"."),(0,o.kt)("hr",null),(0,o.kt)("h3",{id:"fromdate"},"fromDate"),(0,o.kt)("p",null,"\u2022 ",(0,o.kt)("inlineCode",{parentName:"p"},"Optional")," ",(0,o.kt)("strong",{parentName:"p"},"fromDate"),": ",(0,o.kt)("inlineCode",{parentName:"p"},"Date")),(0,o.kt)("p",null,"The earliest day to start the month navigation."),(0,o.kt)("hr",null),(0,o.kt)("h3",{id:"frommonth"},"fromMonth"),(0,o.kt)("p",null,"\u2022 ",(0,o.kt)("inlineCode",{parentName:"p"},"Optional")," ",(0,o.kt)("strong",{parentName:"p"},"fromMonth"),": ",(0,o.kt)("inlineCode",{parentName:"p"},"Date")),(0,o.kt)("p",null,"The earliest month to start the month navigation."),(0,o.kt)("hr",null),(0,o.kt)("h3",{id:"fromyear"},"fromYear"),(0,o.kt)("p",null,"\u2022 ",(0,o.kt)("inlineCode",{parentName:"p"},"Optional")," ",(0,o.kt)("strong",{parentName:"p"},"fromYear"),": ",(0,o.kt)("inlineCode",{parentName:"p"},"number")),(0,o.kt)("p",null,"The earliest year to start the month navigation."),(0,o.kt)("hr",null),(0,o.kt)("h3",{id:"locale"},"locale"),(0,o.kt)("p",null,"\u2022 ",(0,o.kt)("inlineCode",{parentName:"p"},"Optional")," ",(0,o.kt)("strong",{parentName:"p"},"locale"),": ",(0,o.kt)("inlineCode",{parentName:"p"},"Locale")),(0,o.kt)("p",null,"The date-fns locale object to localize the user interface. Defaults to\n",(0,o.kt)("inlineCode",{parentName:"p"},"en-US"),"."),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre"},"import es from 'date-fns/locale/es';\n")),(0,o.kt)("p",null,"See also date-fns ",(0,o.kt)("a",{parentName:"p",href:"https://date-fns.org/docs/I18n"},"Internationalization\nguide"),"."),(0,o.kt)("hr",null),(0,o.kt)("h3",{id:"required"},"required"),(0,o.kt)("p",null,"\u2022 ",(0,o.kt)("inlineCode",{parentName:"p"},"Optional")," ",(0,o.kt)("strong",{parentName:"p"},"required"),": ",(0,o.kt)("inlineCode",{parentName:"p"},"boolean")),(0,o.kt)("p",null,"Make the selection required."),(0,o.kt)("hr",null),(0,o.kt)("h3",{id:"todate"},"toDate"),(0,o.kt)("p",null,"\u2022 ",(0,o.kt)("inlineCode",{parentName:"p"},"Optional")," ",(0,o.kt)("strong",{parentName:"p"},"toDate"),": ",(0,o.kt)("inlineCode",{parentName:"p"},"Date")),(0,o.kt)("p",null,"The latest day to end the month navigation."),(0,o.kt)("hr",null),(0,o.kt)("h3",{id:"tomonth"},"toMonth"),(0,o.kt)("p",null,"\u2022 ",(0,o.kt)("inlineCode",{parentName:"p"},"Optional")," ",(0,o.kt)("strong",{parentName:"p"},"toMonth"),": ",(0,o.kt)("inlineCode",{parentName:"p"},"Date")),(0,o.kt)("p",null,"The latest month to end the month navigation."),(0,o.kt)("hr",null),(0,o.kt)("h3",{id:"toyear"},"toYear"),(0,o.kt)("p",null,"\u2022 ",(0,o.kt)("inlineCode",{parentName:"p"},"Optional")," ",(0,o.kt)("strong",{parentName:"p"},"toYear"),": ",(0,o.kt)("inlineCode",{parentName:"p"},"number")),(0,o.kt)("p",null,"The latest year to end the month navigation."),(0,o.kt)("hr",null),(0,o.kt)("h3",{id:"today"},"today"),(0,o.kt)("p",null,"\u2022 ",(0,o.kt)("inlineCode",{parentName:"p"},"Optional")," ",(0,o.kt)("strong",{parentName:"p"},"today"),": ",(0,o.kt)("inlineCode",{parentName:"p"},"Date")),(0,o.kt)("p",null,'The date to use as "today".'))}u.isMDXComponent=!0},35318:(e,t,n)=>{"use strict";n.d(t,{Zo:()=>u,kt:()=>m});var r=n(27378);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=r.createContext({}),s=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=s(e.components);return r.createElement(p.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},c=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),c=s(n),m=a,f=c["".concat(p,".").concat(m)]||c[m]||d[m]||o;return n?r.createElement(f,i(i({ref:t},u),{},{components:n})):r.createElement(f,i({ref:t},u))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,i=new Array(o);i[0]=c;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l.mdxType="string"==typeof e?e:a,i[1]=l;for(var s=2;s<o;s++)i[s]=n[s];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}c.displayName="MDXCreateElement"}}]);