@sb1/ffe-datepicker-react
TypeScript icon, indicating that this package has built-in type declarations

10.3.0 • Public • Published

@sb1/ffe-datepicker-react

Install

npm install --save @sb1/ffe-datepicker-react

Usage

Full documentation on datepicker usage is available at https://design.sparebank1.no/komponenter/skjemaelementer/#datepicker.

This package depends on @sb1/ffe-form-react and @sb1/ffe-icons-react. Make sure you import the less-files from these packages.

Requirements

  • i18n
  • Show calendar on focus
  • Handle various input-formats (see simpledate.test.js)
  • Validate on blur on the whole component (both the input and the calendar)

a11y

Requirements for full a11y-compliance:

Examples:

Other

Evaluated implementations:

Development

To start a local development server, run the following from the designsystem root folder:

npm install
npm run build
npm start

A local instance of component-overview with live reloading will run at http://localhost:1234/.

Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.

Readme

Keywords

none

Package Sidebar

Install

npm i @sb1/ffe-datepicker-react

Weekly Downloads

1,148

Version

10.3.0

License

MIT

Unpacked Size

186 kB

Total Files

87

Last publish

Collaborators

  • antidecaf
  • sb1-designsystem
  • kwltrs
  • erlingk