STUDS provides a streamlined UI design system for React applications. To integrate it into your project, follow these steps.
Step 1: Install the Studs package from NPM
To add STUDS to your React project, install the @studs/react
package from NPM. This package contains the necessary components and styles to get you started.
Step 2: Add the STUDS CSS
How to install @studs/styles
Package Manager Installation CDN Install @studs/styles
using your prefered package manager.
npm install @studs/styles
Install @studs/styles
using your prefered package manager.
npm install @studs/styles
< link rel = "stylesheet" href = "https://unpkg.com/@studs/styles@latest/public/css/studs-styles.css" />
Order of Imports
Ensure that the @studs/styles is applied before any other styles to avoid conflicts. This will provide base styling for your project. The order should be:
@studs/styles
Any additional app-specific styles.
How to add @studs/styles
to your React Application
In your App.js add the following line:
import "@studs/styles"
import '@studs/react/styles'
or in your main <head>
section,
< link href = "node_modules/@studs/styles/public/css/studs-styles.css" rel = "stylesheet" />
Step 3: Use a STUDS Component
import { Button } from "@studs/react" ;
function App () {
return (
< Button onClick = { () => console . log ( "Button clicked" ) } > Button </ Button >
);
}
Responses are generated using AI and may contain mistakes.