Catalog: ReactSpecimen supports a 'sourceText' prop

Also update version to 3.2, which is what we claim compatibility with.
This commit is contained in:
Tomas Carnecky 2018-02-13 07:33:33 +01:00
parent 242fcd3080
commit 072e0259e7
2 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,7 @@ render(config, document.body);
markdown`
# Test
${<ReactSpecimen>
${<ReactSpecimen sourceText='.'>
<div />
</ReactSpecimen>}
`;

View File

@ -1,4 +1,4 @@
// Type definitions for catalog 2.1
// Type definitions for catalog 3.2
// Project: https://github.com/interactivethings/catalog/
// Definitions by: Peter Gassner <https://github.com/grossbart>, Tomas Carnecky <https://github.com/wereHamster>
// Definitions: https://github.com/interactivethings/catalog/
@ -100,6 +100,7 @@ export interface ReactSpecimenProps extends DefaultCatalogProps {
frame?: boolean;
state?: any;
responsive?: boolean | string | string[];
sourceText?: string;
}
export class ReactSpecimen extends React.Component<ReactSpecimenProps> {}