design-react-kit
Version:
Componenti React per Bootstrap 5
1 lines • 1.13 kB
Source Map (JSON)
{"version":3,"sources":["../../src/Card/CardTitle.tsx"],"sourcesContent":["import React, { FC, HTMLAttributes, ElementType } from 'react';\nimport { CardTitle as InnerCardTitle } from 'reactstrap';\n\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 CardTitleProps extends HTMLAttributes<HTMLElement> {\n /** Utilizzarlo in caso di utilizzo di componenti personalizzati */\n tag?: ElementType;\n /** Classi aggiuntive da usare per il componente CardTitle */\n className?: string;\n testId?: string;\n}\n\nexport const CardTitle: FC<CardTitleProps> = (props) => {\n return <InnerCardTitle {...props} data-testid={props.testId} />;\n};\n"],"mappings":"0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,eAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAuD,sBACvDC,EAA4C,sBAc/BH,EAAiCI,GACrC,EAAAC,QAAA,cAAC,EAAAC,UAAA,CAAgB,GAAGF,EAAO,cAAaA,EAAM,OAAQ","names":["CardTitle_exports","__export","CardTitle","__toCommonJS","import_react","import_reactstrap","props","React","InnerCardTitle"]}