Skip to content

Commit

Permalink
Adding anatomy section
Browse files Browse the repository at this point in the history
  • Loading branch information
OsamaAbdellateef committed Oct 7, 2024
1 parent 3f93d4e commit f4ae32f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/content/components/form/datefield/datefield.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ The `<DateField>` allows users to enter and edit date values using a keyboard. E

The `<DateField>` segments are individually focusable and editable by the user, by typing or using the arrow keys to increment and decrement the value. This approach allows values to be formatted and parsed correctly regardless of the locale or date format, and offers an easy and error-free way to edit dates using the keyboard.

## Import
## Anatomy

```tsx
import { DateField } from '@marigold/components';
```
<Image
src="/datefield/datefield-anatomy.jpg"
alt="Anatomy of datefield"
width={800}
height={550}
className="mx-auto block"
/>

A date field consists of a label, and a group of segments representing each unit of a date and time (e.g. years, months, days). Each segment is individually focusable and editable by the user, by typing or using the arrow keys to increment and decrement the value. This approach allows values to be formatted and parsed correctly regardless of the locale or date format, and offers an easy and error-free way to edit dates using the keyboard.

## Appearance

Expand Down
Binary file added docs/public/datefield/datefield-anatomy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f4ae32f

Please sign in to comment.