bbodek-ui
v0.0.342
Published
## ๐ฆ Installation
Readme
bbodek-ui
๐ฆ Installation
# With npm
npm install bbodek-ui
# With yarn
yarn add bbodek-uiโ๏ธ Setup
Edit your global.css file:
@import 'bbodek-ui/styles';โ ๏ธ
@config 'bbodek-ui/tailwind-config'๋ 0.0.342๋ถํฐ ์ ๊ฑฐ๋์์ต๋๋ค. tailwind 4.3.1+์์ content ๊ธ๋กญ์ด config ํ์ผ ์์น ๊ธฐ์ค์ผ๋ก ํด์๋์ด ๋ผ์ด๋ธ๋ฌ๋ฆฌ ํด๋์ค๊ฐ ๋๋ฝ๋๋ ๋ฐฉ์์ด๋ฏ๋ก, ๊ธฐ์กด์ ์ฌ์ฉ ์ค์ด๋ผ๋ฉด ํด๋น ๋ผ์ธ์ ์ญ์ ํด์ฃผ์ธ์. ํ ๋งยทsafelist๋@import 'bbodek-ui/styles'ํ ์ค๋ก ๋ชจ๋ ์ ์ฉ๋ฉ๋๋ค.
๐ Peer Dependencies
bbodek-ui is designed to work alongside specific versions of certain peer dependencies. Ensure that your project has the following peer dependencies installed:
"peerDependencies": {
"@types/react": "^19.2.1",
"@types/react-dom": "^19.2.1",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"tailwindcss": "^4.1.4"
}โ Resolving Peer Dependencies
Add the following to your package.json to align your project with the required versions:
"resolutions": {
"@types/react": "^19.2.1",
}โจ Usage
import { Button } from 'bbodek-ui';
import { useState } from 'react';
export default function Home() {
const [isOpen, setIsOpen] = useState(false);
return (
<>
<div id='portal' />
<ModalPopUp
className='h-[30rem] w-[30rem]'
isOpen={isOpen}
onClose={() => setIsOpen(false)}
>
Open ModalPopUp
</ModalPopUp>
<Button
className='w-[20rem]'
color='white'
backgroundColor='primary-03'
content='Button'
size='h-48'
onClick={() => setIsOpen(true)}
/>
</>
);
}License
bbodek-ui is made available under the MIT License.
