6.0.12 • Published 5 months ago

medad-lit v6.0.12

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

How to use tailwdind

In order to use tailwind with your customElement, do these steps respectively.

first import LitWithTw, tw:

import { LitWithTw, tw } from '../../shared/LitWithTw';

after importing, your code should look something like this:

@customElement('mh-accordion')
export class Accordion extends LitWithTw {
  // rest of your code
}

What is tw?

tw adds your styles in runtime and make it pleasant to look.

here is how you can use it:

<div class="${tw`w-full relative min-w-[300px]  bg-white rounded-md`}">
  // rest of your code
</div>
6.0.1

5 months ago

6.0.0

5 months ago

6.0.12

5 months ago

6.0.3

5 months ago

6.0.11

5 months ago

6.0.2

5 months ago

6.0.10

5 months ago

6.0.5

5 months ago

6.0.4

5 months ago

0.0.1

10 months ago

0.0.0

10 months ago