0.0.25 • Published 2 months ago

@transpiled/ui v0.0.25

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months 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

2 months ago

0.0.38

2 months ago

0.0.32

2 months ago

0.0.33

2 months ago

0.0.34

2 months ago

0.0.35

2 months ago

0.0.36

2 months ago

0.0.31

2 months ago

0.0.30

2 months ago

0.0.28

2 months ago

0.0.29

2 months ago

0.0.26

3 months ago

0.0.27

3 months ago

0.0.25

4 months ago

0.0.23

5 months ago

0.0.24

5 months ago

0.0.22

5 months ago

0.0.21

6 months ago

0.0.20

6 months ago

0.0.19

6 months ago

0.0.18

6 months ago

0.0.17

6 months ago

0.0.16

7 months ago

0.0.15

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago