UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

1 lines 1.15 kB
{"version":3,"file":"wrap.cjs","names":["createComponent","wrapStyle","Flex"],"sources":["../../../../src/components/wrap/wrap.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ThemeProps, WithoutThemeProps } from \"../../core\"\nimport type { FlexProps } from \"../flex\"\nimport type { WrapStyle } from \"./wrap.style\"\nimport { createComponent } from \"../../core\"\nimport { Flex } from \"../flex\"\nimport { wrapStyle } from \"./wrap.style\"\n\nexport interface WrapProps\n extends WithoutThemeProps<FlexProps, WrapStyle>,\n ThemeProps<WrapStyle> {}\n\nconst {\n PropsContext: WrapPropsContext,\n usePropsContext: useWrapPropsContext,\n withContext,\n} = createComponent<WrapProps, WrapStyle>(\"wrap\", wrapStyle)\n\nexport { useWrapPropsContext, WrapPropsContext }\n\n/**\n * `Wrap` is a component that has `wrap` set on `Flex`. It inherits convenient style shorthand from `Flex`.\n *\n * @see https://yamada-ui.com/docs/components/wrap\n */\nexport const Wrap = withContext<\"div\", WrapProps>(Flex)()\n"],"mappings":";;;;;;;;AAaA,MAAM,EACJ,cAAc,kBACd,iBAAiB,qBACjB,gBACEA,yCAAsC,QAAQC,6BAAU;;;;;;AAS5D,MAAa,OAAO,YAA8BC,kBAAK,EAAE"}