1.0.3 • Published 2 years ago

react-bootstrap-theme v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

UI Library react-bootstrap-theme

With Theme!

A React Bootstrap UI library that extends Theme functionality

Installation

npm i react-bootstrap-theme

Usage

// Needless to mention, import react

const YourComponent = () => {
  const [theme, setTheme] = useState("light");
  const toggleTheme = () =>
    setTheme((theme) => (theme === "light" ? "dark" : "light"));

  return (
    <>
      <ThemeProvider theme={theme}>
        <ThemedButton onClick={toggleTheme}>Click to toggle theme</ThemedButton>
        <ThemedButton>Hello WOrld</ThemedButton>
      </ThemeProvider>
    </>
  );
};

Contact

Support @ react-bootstrap-theme