1.0.3 • Published 2 years ago
react-bootstrap-theme v1.0.3
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