0.0.25 • Published 1 year ago

@transpiled/ui v0.0.25

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

@transpiled/ui

Transpiled UI is a modular component library designed to accelerate web development, offering a collection of reusable, well-documented, and accessible UI components. Built with React, TranspiledUI embodies a blend of modern design and coding standards, making it an ideal choice for developers aiming to build visually appealing and functional web applications with minimal hassle.

Installation

# with npm
npm install @transpiled/ui

# or with yarn
yarn add @transpiled/ui

Our component library is built with theming and ease of navigation in mind. Below is how you can integrate the ThemeProvider in your project.

ThemeProvider

ThemeProvider is a context provider which allows you to easily apply a theme and toggle between light and dark themes in your application. Here's how you can use it:

Import ThemeProvider from @transpiled/ui:

import { ThemeProvider } from '@transpiled/ui';

function App() {
  return (
    <ThemeProvider>
      <YourAppHere />
    </ThemeProvider>
  );
}

export default App;

You can toggle between the light and dark themes using the toggleTheme function provided by ThemeProvider:

import { useTheme } from '@transpiled/ui';

// Inside your component
const { toggleTheme } = useTheme();
// Use toggleTheme function to switch themes
<button onClick={toggleTheme}>Toggle Theme</button>;

ScrollToTop

ScrollToTop is a component that renders a button allowing users to easily scroll back to the top of the page. Here's how you can use it:

import { ThemeProvider } from '@transpiled/ui';
import { ScrollToTop } from '@transpiled/ui';

function App() {
  return (
    <ThemeProvider>
      <ScrollToTop />
      <YourAppHere />
    </ThemeProvider>
  );
}

export default App;

Place the ScrollToTop component at the top of your app in your JSX, it will render a button fixed at the bottom-right of the window that will scroll the user back to the top of the page when clicked

0.0.37

1 year ago

0.0.38

1 year ago

0.0.32

1 year ago

0.0.33

1 year ago

0.0.34

1 year ago

0.0.35

1 year ago

0.0.36

1 year ago

0.0.31

1 year ago

0.0.30

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.25

1 year ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago