Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
776 Bytes
import type {
HTMLChakraProps,
RecipeVariantProps,
UnstyledProp,
} from "@chakra-ui/react"
import { createRecipeContext, defineRecipe } from "@chakra-ui/react"
const buttonRecipe = defineRecipe({
className: "button",
base: {
padding: "10px",
borderRadius: "4px",
backgroundColor: "red",
color: "white",
},
variants: {
bold: {
true: {
fontWeight: "bold",
},
},
},
})
const { withContext } = createRecipeContext({
recipe: buttonRecipe,
})
interface ButtonProps
extends HTMLChakraProps<"button", RecipeVariantProps<typeof buttonRecipe>>,
UnstyledProp {}
const Button = withContext<HTMLButtonElement, ButtonProps>("button")
export const SystemInlineRecipe = () => {
return <Button bold>Welcome</Button>
}