Variable Buttons
Padding, width, height, text are optional, if not set there are default values (no css)
This commit is contained in:
+12
-13
@@ -1,13 +1,12 @@
|
||||
import logo from './logo.svg';
|
||||
import './App.css';
|
||||
import Button from "./components/Button";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<Button text={"Test"} PaddingX={20} PaddingY={10}/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
import './App.css';
|
||||
import Button from "./components/Button";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<Button/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
Reference in New Issue
Block a user