UNPKG

design-react-kit

Version:

Componenti React per Bootstrap 5

1 lines 1.47 kB
{"version":3,"sources":["../../src/Card/CardBody.tsx"],"sourcesContent":["import React, { FC, HTMLAttributes, ElementType, Ref } from 'react';\nimport { CardBody as InnerCardBody } from 'reactstrap';\nimport { CSSModule } from 'reactstrap/types/lib/utils';\n// Note: this is a wrapper class around a reactstrap component.\n// TODO: remove this class and restore the direct import when\n// https://github.com/storybookjs/storybook/issues/10536 gets resolved\n\nexport interface CardBodyProps extends HTMLAttributes<HTMLElement> {\n /** Utilizzarlo in caso di utilizzo di componenti personalizzati */\n tag?: ElementType;\n /** Classi aggiuntive da usare per il componente Card */\n className?: string;\n /** Da utilizzare per impostare un riferimento all'elemento DOM */\n innerRef?: Ref<HTMLElement>;\n /** Oggetto contenente la nuova mappatura per le classi CSS. */\n cssModule?: CSSModule;\n testId?: string;\n}\n\nexport const CardBody: FC<CardBodyProps> = ({ tag = 'div', testId, ...props }) => (\n <InnerCardBody {...props} tag={tag} data-testid={testId} />\n);\n"],"mappings":"0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,cAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA4D,sBAC5DC,EAA0C,sBAkB7BH,EAA8B,CAAC,CAAE,IAAAI,EAAM,MAAO,OAAAC,EAAQ,GAAGC,CAAM,IAC1E,EAAAC,QAAA,cAAC,EAAAC,SAAA,CAAe,GAAGF,EAAO,IAAKF,EAAK,cAAaC,EAAQ","names":["CardBody_exports","__export","CardBody","__toCommonJS","import_react","import_reactstrap","tag","testId","props","React","InnerCardBody"]}