react-bootstrap-theme
v1.0.3
Published
A Bootstrap React UI library that extends Theme functionality
Downloads
11
Maintainers
Readme
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