Skip to content

Commit

Permalink
Last docs
Browse files Browse the repository at this point in the history
Signed-off-by: gpbl <io@gpbl.dev>
  • Loading branch information
gpbl committed Feb 26, 2024
1 parent f2f7243 commit 4fa9be1
Show file tree
Hide file tree
Showing 36 changed files with 140 additions and 477 deletions.
9 changes: 9 additions & 0 deletions docs/accessibility.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sort: 10
---

_Getting Started_

# Accessible Date Pickers

DayPicker follows the ARIA guidelines for date pickers, including keyboard navigation, focus management, and labeling. However, as developer you will need to adapt DayPicker to your specific use cases.
5 changes: 0 additions & 5 deletions docs/advanced/index.mdx

This file was deleted.

11 changes: 0 additions & 11 deletions docs/community.mdx

This file was deleted.

42 changes: 0 additions & 42 deletions docs/customization/calendar-options.mdx

This file was deleted.

5 changes: 0 additions & 5 deletions docs/customization/index.mdx

This file was deleted.

93 changes: 0 additions & 93 deletions docs/customization/months-navigation.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion docs/development/architecture.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_Development_
_About DayPicker_

# Architecture

Expand Down
2 changes: 1 addition & 1 deletion docs/development/contributing.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_Development_
_About DayPicker_

# Contributing

Expand Down
9 changes: 0 additions & 9 deletions docs/development/credits.mdx

This file was deleted.

7 changes: 7 additions & 0 deletions docs/development/funding.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_About DayPicker_

# Funding

> Help us to improve DayPicker and make it better for everyone.
**TODO**: This section is still a draft.
5 changes: 0 additions & 5 deletions docs/development/index.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion docs/license.mdx → docs/development/license.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sort: 3
---

_Introduction_
_About DayPicker_

# License

Expand Down
11 changes: 0 additions & 11 deletions docs/funding.mdx

This file was deleted.

5 changes: 0 additions & 5 deletions docs/getting-started/index.mdx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
sort: 3
---

_Advanced Guides_

# Custom Components
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sort: 2
sort: 3
---

_Advanced Guides_
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
sort: 2
sort: 3
---

_Selecting Days_
_Advanced Guides_

# Custom Selections

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
---
sort: 1
sort: 3
---

_Advanced Guides_

# Accessible Date Pickers

> Some notes for creating an accessible date pickers
# Input fields

DayPicker follows the ARIA guidelines for date pickers, including keyboard navigation, focus management, and labeling. However, as developer you will need to adapt DayPicker to your specific use cases.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
sort: 1
sort: 3
---

_Internationalization_
_Advanced Guides_

# Localization

Expand Down
18 changes: 9 additions & 9 deletions docs/getting-started/styling.mdx → docs/guides/styling.mdx
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
---
sort: 1
sort: 5
---

_Customization_
_Getting Started_

# Styling

> Change the appearance of the HTML elements, such as headings, grid cells and buttons.
> DayPicker comes with a minimal style inspired by MacOS date pickers and it's designed to be easily customized.
## Default Style

DayPicker comes with a minimal style inspired by MacOS date pickers and it's designed to be easily customized.
## Importing the Default Style

To start with the included style, import `react-day-picker/style.css` into your app. This will add the `.rdp` class names used by DayPicker.

Expand All @@ -34,11 +32,13 @@ If you are using a CDN, add the following link to your HTML file:

When using CSS modules, you can import `style.module.css`. Pass the class names to the `classNames` prop.

```tsx title="MyComponent.jsx"
```tsx title="DatePicker.jsx"
import { DayPicker } from "react-day-picker";
import dayPickerClassNames from "react-day-picker/style.module.css";
// ...
<DayPicker classNames={dayPickerClassNames} />;

export function DatePicker() {
return <DayPicker classNames={dayPickerClassNames} />;
}
```

From here, you have different options to customize the appearance of the calendar, depending on your project setup.
Expand Down
Loading

0 comments on commit 4fa9be1

Please sign in to comment.