rusticflow-ui
v0.2.1
Published
<link rel="stylesheet" href="./src/global.module.css">
Downloads
15
Readme
Table of Content
- Alert
- Avatar
- Box
- Button
- Carousel
- Dropdown
- Footer
- Group
- Hero
- Image
- Input
- List
- Mask
- Message
- Modal
- Notification
- Pagination
- Panel
- Parallax
- Progress
- Table
- Textarea
- Tooltip
- Wrapper
Install
npm
npm install rusticflow-ui
pnpm
pnpm add rusticflow-ui
Usage
Add styles in a top level component or a layout.tsx/.jsx file so that you do not have to keep sourcing it in child components.
import "rusticflow-ui/dist/cjs/index.css"
Import a component in the component you are in.
// Include components
import { Box } from "rusticflow-ui"
You can import multiple components at once.
// Include components
import { Alert, Box, Carousel, Text } from "rusticflow-ui"
Use your component. For Example Here we are using Box component.
const App = () => {
return (
<Box>
<div className="content">
<div class="content">
<Text variant="h4">
<div class="card"></div>
</Text>
</div>
</div>
</Box>
)
}
Components
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
<div class="content">
I am Alert
</div>
</Alert>
Alert support the following props
- className
- style
Example Alert with passed props
<Alert
className="bg--yellow"
style={{ color: "green" }}
>
I am Alert
</Alert>
Example
import { Avatar } from "rusticflow-ui"
Example
<Avatar>
U
</Avatar>
Avatar support the following props
- className
- style
Example
import { Box, Image, Text } from "rusticflow-ui"
Example
<Box>
<div className="content">
<div className="box__heading">
<Image></Image>
</div>
<div class="box__footer">
<Text variant="h3" className="box__title">Rustic Flow</Text>
<Text className="lead">Sit explicabo accusamus elit explicabo enim temporibus Velit dolor officia.</Text>
</div>
</div>
</Box>
Box support the following props
- className
- style
Example
import { Button } from "rusticflow-ui"
Example
<Button onClick={() => console.log("clicked ...")}">
Click me
</Button>
Click me
Button support the following props
- className
- style
- onClick
Example
import { Carousel } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>
Example
import { Alert } from "rusticflow-ui"
Example
<Alert>
I am Alert
</Alert>
Alert support the following props
- className
- style
<Alert className="bg--yellow" style={{ color: "green" }}>
I am Alert
</Alert>