0.2.1 • Published 1 year ago

rusticflow-ui v0.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Table of Content

Installation Usage Components

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>
0.2.1

1 year ago

0.2.0

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago