@bbodek/biz-ui
v0.0.66
Published
```sh # with npm npm install @bbodek/biz-ui
Downloads
2,134
Readme
@bbodek/biz-ui ·

Installation
# with npm
npm install @bbodek/biz-ui
# with yarn
yarn add @bbodek/biz-uiUsage
1. To install Tailwind CSS in your Next.js project
2. Update your global css file
/* global.css */
@import 'tailwindcss';
@import '@bbodek/biz-ui/styles';⚠️
@config '@bbodek/biz-ui/tailwind-config'는 0.0.45부터 제거되었습니다. tailwind 4.3.1+에서 content 글롭이 config 파일 위치 기준으로 해석되어 라이브러리 클래스가 누락되던 방식이므로, 기존에 사용 중이라면 해당 라인(및 이를 re-export 하던 로컬 tailwind config)을 삭제해주세요. 테마·safelist는@import '@bbodek/biz-ui/styles'한 줄로 모두 적용됩니다.
3. Set viewport for WebView
safe-area-* utilities require viewport-fit=cover.
/* app/layout.tsx */
export const viewport = {
width: 'device-width',
initialScale: 1,
viewportFit: 'cover',
};4. Mount Toaster (only if you use toast)
Render it once at the app root. toast.* calls do nothing without it.
/* app/layout.tsx */
import { Toaster } from '@bbodek/biz-ui';
<body>
{children}
<div id='portal' />
<Toaster />
</body>;Screens with a fixed CTA set --toast-offset so toasts float above it.
document.documentElement.style.setProperty('--toast-offset', '84px');Example
import { TYPOGRAPHY_STYLES_MAPPER } from '@bbodek/biz-ui';
const Example = () => {
return (
<p className={`${TYPOGRAPHY_STYLES_MAPPER['body']} text-gray-900`}>
Click Me!
</p>
);
};
export default Example;Peer Dependencies
"peerDependencies": {
"next": "^15.3.6",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"tailwindcss": "^4"
}License
Licensed under the MIT license.
