chakra-ui / ark

A headless library for building reusable, scalable design systems that works for a wide range of JS frameworks.

Home Page:https://ark-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Date Picker] DatePicker.Context doesn't exist

h8570rg opened this issue · comments

Description

When implemented as shown in the example, DatePicker.Context does not exist.

Link to Reproduction (or Detailed Explanation)

https://codesandbox.io/p/devbox/optimistic-cohen-xnw3gf?file=%2Fsrc%2FApp.tsx%3A9%2C52

Steps to Reproduce

  1. Go to the CodeSandbox

Ark UI Version

2.2.3

Framework

  • React
  • Solid
  • Vue

Browser

Google Chrome

Additional Information

No response

@h8570rg

Thanks for taking your time to create this issue. The docs already show the upcoming v3 version of the DatePicker.
For now just fallback to render prop in the the DatePicker.View part.

<DatePicker.View view="month">
        {(api) => ()}
</DatePickerView>

We will aim to release v3 shortly and already have an idea to keep docs and development in sync.

@cschroeter

Thank you for your response. I'm looking forward to v3!