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.2 kB
{"version":3,"file":"center.cjs","names":["createComponent","centerStyle"],"sources":["../../../../src/components/center/center.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { CenterStyle } from \"./center.style\"\nimport { createComponent } from \"../../core\"\nimport { centerStyle } from \"./center.style\"\n\nexport interface CenterProps extends HTMLStyledProps, ThemeProps<CenterStyle> {}\n\nconst {\n PropsContext: CenterPropsContext,\n usePropsContext: useCenterPropsContext,\n withContext,\n} = createComponent<CenterProps, CenterStyle>(\"center\", centerStyle)\n\nexport { CenterPropsContext, useCenterPropsContext }\n\n/**\n * `Center` is a component that aligns the child elements in the center within the component.\n *\n * @see https://yamada-ui.com/docs/components/center\n */\nexport const Center = withContext(\"div\", {\n base: {\n display: \"flex\",\n placeContent: \"center\",\n placeItems: \"center\",\n },\n})()\n"],"mappings":";;;;;;;AASA,MAAM,EACJ,cAAc,oBACd,iBAAiB,uBACjB,gBACEA,yCAA0C,UAAUC,iCAAY;;;;;;AASpE,MAAa,SAAS,YAAY,OAAO,EACvC,MAAM;CACJ,SAAS;CACT,cAAc;CACd,YAAY;CACb,EACF,CAAC,EAAE"}