Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

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

A Design System for TailwindCSS projects

License

NotificationsYou must be signed in to change notification settings

alexandredev3/tails-ui

Repository files navigation

Tails UI

A Design System for TailwindCSS

Components Storybook DocsLicense

Documentation

To see all the available components and usages, visitalexandredev3.github.io/tails-ui.com

Visithttps://tails-ui-playground.vercel.app/ to play around with the demo.

Usage

Follow these steps to start using the components:

  1. InstallTailwindCSS in your existing React project.
$ npm install -D tailwindcss$ npx tailwindcss init
  1. Install the Tails UI Tailwind plugin as a dev dependency on your project.
$ npm install -D @tails-ui/plugin
  1. Install the components that you want to use in your project.
$ npm install @tails-ui/checkbox @tails-ui/button

Tails UI allows you to download only those components that you really need in your project.

  1. Add the Tails UI plugin to your projecttailwind.config.js file.
/**@type {import('tailwindcss').Config} */module.exports={plugins:[require('@tails-ui/plugin')]}
  1. Add the Tails UI components template path to yourtailwind.config.js file.
/**@type {import('tailwindcss').Config} */module.exports={content:["./node_modules/@tails-ui/**/*.js"],}
  1. Now you can start to use the components!
functionExample(){return(<main><divclassName="flex items-center gap-2"><Checkboxid="terms"name="terms"><Checkbox.Icon/></Checkbox><LabelclassName="text-sm"htmlFor="terms">          Accept terms&conditions</Label></div></main>);}

Contributing


[8]ページ先頭

©2009-2025 Movatter.jp