• Start
  • Blogg
  • Kom igång
  • Riktlinjer
  • Komponenter
  • Changelog
  • Tillgänglighet
  • Statistik
  • Inställningar

Komponenter

Komponenter

​
​

Inga resultat hittade, prova med andra sökvillkor.

Date Calendar

Date Calendar

3.4.8

The Date Calendar lets the user select a date without any input or modal.

Demo
Props
Installation
Länkar
Tillgänglighet
Tangentbordsinteraktioner
Change log
Statistik

Demo

Props

Se fullständing dokumentation(öppnas i ny flik)
NamnTypBeskrivning

customTranslation

DeepPartialTranslation object used for screen reader texts.

disabled

booleanIf true, the component is disabled.

disableFuture

booleanIf true, disable values after the current date for date components, time for time components and both for date time components.

disablePast

booleanIf true, disable values before the current date for date components, time for time components and both for date time components.

hasActionButtons

booleanRender action buttons Cancel and Ok. If true, onAccept only fires on Ok button

hasWeekNumbers

booleanSet this to true the picker should show week numbers next to dates.

isLoading

booleanIf true, a loading skeleton will be rendered instead of the component.

lang *

"sv" | "en"Language used for localization and date formatting.

onChange

(newValue: Date, selectionState: unknown, selectedView: ViewType) => voidCallback when Calendar changes.

onClose

() => voidCallback when Calendar is requested to be closed.

outlined

booleanIf true the calendar will have a border and white background. Default is false = transparent

secondaryView

"month" | "year"Specifies the default calendar view when the component is rendered.

timeZone

stringTime zone for the calendar.

titleStyle

"h2" | "h3" | "h4"Style calendar heading as h2, h3 or h4. Defaults to h2

value

"undefined" | DateDate value of the datepicker, in yyyy-MM-dd format.

Installation

Kodexempel
npm install @sj-ab/component-library.ui.date-calendar

Länkar

  • Storybook

  • Figma

  • Bit.cloud

Tillgänglighet

Se dokumentationen för Date Picker:

[@portabletext/react] Unknown block type "sjDesignComponentPage", specify a component for it in the `components.types` prop

Tangentbordsinteraktioner

  • Enter / Piltangenter
    Välj ett datum i kalender

Change log

  • Force tagging of components depending on @mui/x-packages

    3.4.3
  • Fix broken DatePicker loading state

    3.4.1
  • Upgrade to React 19

    3.4.0

Statistik

  • Importer av Date Calendar

    11
  • Repos med Date Calendar

    28%
  • Senaste installerade version av Date Calendar

    3.4.8
  • Äldsta installerade version av Date Calendar

    3.4.8