🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

medad-lit

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medad-lit

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

latest
npmnpm
Version
6.0.12
Version published
Maintainers
1
Created
Source

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>

FAQs

Package last updated on 24 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts