Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Svelte integration

hi any update for svelte/sveltekit integration guide for v9 ? or is there any current integration that is similar to svelte ?

right now what i am trying is like this.

  1. Copy all the tailwind.config.js into svelte tailwind.config.ts
  2. Copy all the required tailwind.config.js plugin to ./src/lib/core

The style is working, but the interactive component like the accordion, drawer etc is not working.

is there any missing step ?

for now i am okay with just copy paste the html code of the component into svelte, but not sure which configuration i need to setup.

Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

I want to apologize for the late reply.

Currently, we do not have any solutions related specifically to Svelte, if you want to make the integration you can refer to our HTML version markup.

We have integration guides for React and Vue you can try to implement a similar components initialization approach.

Refer to the code in React integration guide.
https://github.com/keenthemes/metronic-tailwind-html-integration/blob/main/metronic-tailwind-react/src/App.tsx

Make sure to call global initialization functions in component mounted event.

KTComponent.init();
KTLayout.init();


Regards,
Lauris Stepanovs,
Keenthemes Support Team



The information you shared is very useful, thanks.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(