-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
6,255 additions
and
7,535 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
packages/bits-ui/src/lib/bits/date-field/components/date-field-hidden-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script lang="ts"> | ||
import VisuallyHidden from "$lib/bits/utilities/visually-hidden/visually-hidden.svelte"; | ||
import { useDateFieldHiddenInput } from "../date-field.svelte.js"; | ||
const hiddenInputState = useDateFieldHiddenInput(); | ||
</script> | ||
|
||
{#if hiddenInputState.shouldRender} | ||
<VisuallyHidden asChild> | ||
{#snippet child({ props })} | ||
<input {...props} {...hiddenInputState.props} /> | ||
{/snippet} | ||
</VisuallyHidden> | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.