sm-ui-react-components
v1.0.6
Published
import React from 'react'; import { SmButton, useTheme } from "sm-ui-react-components";
Downloads
14
Readme
sm-ui-react-components
import React from 'react';
import { SmButton, useTheme } from "sm-ui-react-components";
function App() {
const { theme, changeTheme, getTheme } = useTheme();
const newTheme = {
colors: {
primary: "#fff",
secondary: "#ffd880",
},
}
changeTheme(newTheme)
return (
<div className="App">
<header className="App-header">
<SmButton size="m">My Button</SmButton>
<p>sm-ui-react-components</p>
</header>
</div>
);
}
export default App;