diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx index 5bc1429..b5220ce 100644 --- a/src/components/Button/Button.tsx +++ b/src/components/Button/Button.tsx @@ -46,4 +46,4 @@ const Button: FC = ({ } export default Button - +export type { ButtonType, LabelType } \ No newline at end of file diff --git a/src/index.tsx b/src/index.tsx index 6c60106..aa0b36c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,22 +1,48 @@ import { Button } from './components'; -import React from 'react'; +import React, { useState } from 'react'; import ReactDOM from 'react-dom/client'; import './index.scss' +import { ButtonType, LabelType } from 'components/Button/Button'; const root = ReactDOM.createRoot( document.getElementById('root') as HTMLElement ); -root.render( - +function ButtonsBlock() { + const [title, settitle] = useState('button') + const [labelType, setlabelType] = useState('uppercase') + const [rounded, setrounded] = useState(false) + const [short, setshort] = useState(false) + const [type, settype] = useState('filled') + + return (

Buttons

-
+ ) +} + +root.render( + + ); \ No newline at end of file