svelte-calendar icon indicating copy to clipboard operation
svelte-calendar copied to clipboard

Style of the open calendar button

Open BartokIT opened this issue 3 years ago • 1 comments

Hi, thanks for this awesome component.

I'm trying to stylize the button to open the calendar without success: the theme support you added change only the calendar itself or it is possible to pass a custom button definition as slot to open the calendar?

KR

BartokIT avatar Dec 28 '21 10:12 BartokIT

The theming can be used to style the background and text color of the default button/trigger for opening the calendar (it shares these css variables with the calendar). I could potentially add additional theming variables/capabilities for the button and document this better in the theme editor.

However it is also possible to pass your own button/trigger as a slot. There is an example of this on the github-pages documentation site ("custom trigger") but it basically looks like this: https://svelte.dev/repl/a7a20f473ed449aa82a37c280016cc18?version=3.44.3

6eDesign avatar Dec 31 '21 07:12 6eDesign