Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Windstitch is a 1.4kB, Simple Styling Library that helps you set when a className should be applied to a component.

License

NotificationsYou must be signed in to change notification settings

vinpac/windstitch

Repository files navigation

Windstitch

Windstitch

Windstitch is a1.4kB, Simple Styling Library that helps you setwhen a className should be applied to a component.

By providing Powerful Types through forward declarations, Windstitch aims to be simple yet powerful by limiting itself to be a organizer API, letting Tailwind handle the styling part.

Usage

Install

Install Windstitch from your terminal via npm or yarn.

# With npmnpm install windstitch# With yarnyarn add windstitch

Import it

Importstyled fromwindstitch.

import{styled}from'windstitch';

You can also importw, which works as an alias forstyled

import{w}from'windstitch';

Use it

Use thew function to create a component and add styles to it.

import{w}from'@wind/react';constButton=w.button('text-sm',{variants:{color:{red:'text-red-500',blue:'text-blue-500',},size:{small:'text-sm',large:'text-lg',},},defaultVariants:{size:'small',},});typeButtonProps=W.infer<typeofButton>;// { color: 'red' | 'blue', size?: 'small' | 'large' }

About

Windstitch is a 1.4kB, Simple Styling Library that helps you set when a className should be applied to a component.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp