Skip to content

Commit

Permalink
[DateField] Add icon example
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Mar 18, 2022
1 parent 3a1c82a commit 86dfd0a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/routes/docs/components/DateField.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ filename: $filename
<script>
import { addDays } from 'date-fns';

import { mdiCalendarStart, mdiCalendarEnd } from '@mdi/js';

import api from '$lib/components/DateField.svelte?raw&sveld';
import ApiDocs from '$lib/components/ApiDocs.svelte';

Expand Down Expand Up @@ -60,6 +62,15 @@ filename: $filename
<DateField label="Birth date" />
</Preview>

## Icon

<Preview>
<div class="grid gap-2">
<DateField label="Start date" icon={mdiCalendarStart} />
<DateField label="End date" icon={mdiCalendarEnd} />
</div>
</Preview>

## Error

<Preview>
Expand Down

0 comments on commit 86dfd0a

Please sign in to comment.