@bamboo-ds/react
v1.0.10
Published
## How to install
Downloads
1
Readme
Bamboo React
How to install
- Install pandacss
pnpm add -D @pandacss/dev
pnpm panda init --postcss
- Add css layer in your root app. See pandacss instalation webpage (next/remix/vite) for details
/* src/app.css */
@layer reset, base, tokens, recipes, utilities;
- Add Dependecy
pnpm add @bamboo-ds/recipe @bamboo-ds/react
- Add
@bamboo-ds/recipe
in panda config
// panda.config.ts
import { recipes } from '@bamboo-ds/recipe'; // <- Add this line
import { defineConfig } from '@pandacss/dev';
export default defineConfig({
// ...
// Useful for theme customization
theme: {
extend: {
recipes, // <- Add this line
},
},
// ...
});
- Use the component in your page!
// page.tsx
import { Button } from '@bamboo-ds/react';
type Props = {};
export function Page(props: Props) {
return (
<div>
<Button visual='secondary'>Hello Bamboo!</Button>
</div>
);
}