Skip to content

Commit

Permalink
feat: allow styling of div which wraps the Datepicker component
Browse files Browse the repository at this point in the history
  • Loading branch information
6eDesign committed Jan 15, 2020
1 parent 4fbfb6b commit 19d4b07
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 27 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ prop name | type | default
`format` | `string` \| `function` | `'#{m}/#{d}/#{Y}'`
`daysOfWeek` | `array` | En-US Locale (see below)
`monthsOfYear` | `array` | En-US Locale (see below)
`style` | `string` | ""

### `start` and `end`
These properties set the minimum and maximum dates that will be rendered by this calendar. It is **highly** recommended that you do not leave these as their defaults and supply values which suit your application's needs.
Expand Down Expand Up @@ -66,6 +67,9 @@ export let monthsOfYear = [
];
```

### `style`
This prop allows you to style the div which wraps the Datepicker component. This can be useful, for instance, if you'd like to do something like make the component full-width or `display: block;` (by default the element is `inline-block`). If you would like to style the button that triggers the opening of the datepicker we recommend you pass a custom element (button/link/etc) to the component via its default slot.

### Kitchen Sink Example:
```html
<script>
Expand Down
2 changes: 1 addition & 1 deletion docs/bundle.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions docs/bundle.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/test.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 19d4b07

Please sign in to comment.