import { sva } from '../styled-system/css' import { createSlotRecipeContext } from '../styled-system/jsx' import { custom } from '../styled-system/recipes' const _custom = sva({ slots: ['root', 'label'], className: '__custom', base: { root: { color: 'red', bg: 'red.300', }, label: { fontWeight: 'medium', }, }, variants: { size: { sm: { root: { padding: '10px', }, }, md: { root: { padding: '20px', }, }, }, }, defaultVariants: { size: 'sm', }, }) const { withProvider, withContext } = createSlotRecipeContext(custom) export const Root = withProvider('div', 'root', { defaultProps: { class: 'group' } }) export const Label = withContext('label', 'label', { defaultProps: () => ({ class: 'group__item', children:

Dog

}) })