Skip to content

Commit b24b670

Browse files
committed
docs: datepicker
1 parent 7e208ad commit b24b670

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

packages/react/src/components/date-picker/examples/inline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { DatePicker } from '@ark-ui/react/date-picker'
22

33
export const Inline = () => {
44
return (
5-
<DatePicker.Root open>
5+
<DatePicker.Root inline>
66
<DatePicker.Input />
77
<DatePicker.View view="day">
88
<DatePicker.Context>

packages/solid/src/components/date-picker/examples/inline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Index } from 'solid-js'
33

44
export const Inline = () => {
55
return (
6-
<DatePicker.Root open>
6+
<DatePicker.Root inline>
77
<DatePicker.Context>
88
{(context) => (
99
<>

packages/svelte/src/lib/components/date-picker/examples/inline.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { DatePicker } from '@ark-ui/svelte/date-picker'
33
</script>
44

5-
<DatePicker.Root open>
5+
<DatePicker.Root inline>
66
<DatePicker.Input />
77
<DatePicker.View view="day">
88
<DatePicker.Context>

packages/vue/src/components/date-picker/examples/inline.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { DatePicker } from '@ark-ui/vue/date-picker'
33
</script>
44

55
<template>
6-
<DatePicker.Root open>
6+
<DatePicker.Root inline>
77
<DatePicker.View view="day">
88
<DatePicker.Context v-slot="api">
99
<DatePicker.ViewControl>

website/src/content/pages/components/date-picker.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ To create a date picker that allows multiple months, you need to:
4747

4848
### Inline
4949

50-
In some cases, you might want to display an inline date picker without a popup. This can be achieved by passing the
51-
`inline` prop and avoiding the use of `Portal`, `Positioner` and `Content` components.
50+
Use the `inline` prop to display the date picker directly on the page, without a popup.
5251

53-
> Important to note that inline date picker doesn't use the `Portal` and `Positioner` components.
52+
> When using the `inline` prop, omit the `Portal`, `Positioner`, and `Content` components to render the calendar inline
53+
> within your layout.
5454
5555
<Example id="inline" />
5656

@@ -71,7 +71,8 @@ This allows you to have maximum control over the date picker programmatically.
7171

7272
### Context
7373

74-
These are the properties available when using `UdateUpicker.Context`, `useUdateUpickerContext` hook or `useUdateUpicker` hook.
74+
These are the properties available when using `UdateUpicker.Context`, `useUdateUpickerContext` hook or `useUdateUpicker`
75+
hook.
7576

7677
<ContextType id="date-picker" />
7778

0 commit comments

Comments
 (0)