Socket
Book a DemoInstallSign in
Socket

@classed/solid

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@classed/solid

Classed components for Solid

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

classed

license version size downloads

@classed/solid

Introduction

Classed components for Solid.

Installation

npm install @classed/solid
# or
yarn add @classed/solid
# or
pnpm add @classed/solid
# or
bun add @classed/solid

Examples

basic

with classed utils cx

import classed from "@classed/solid";

// components

const Button = classed("button", "btn", "btn-primary", "btn-medium");

// render

<Button class={["extra", "class" /* any cx ClassedClassValue */]}>button</Button>;

custom concatenation

with clsx

import { create } from "@classed/solid";

import clsx from "clsx";

const classed = create({ cx: clsx });

// components

const Button = classed("button", "btn", "btn-primary", "btn-medium");

// render

<Button class={["extra", "class" /* any clsx ClassValue */]}>button</Button>;

Authors

github

License

MIT License

Keywords

class

FAQs

Package last updated on 19 Apr 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