Merge pull request #23595 from wereHamster/catalog-react-specimen-sourceText

Catalog: ReactSpecimen supports a 'sourceText' prop
This commit is contained in:
Daniel Rosenwasser 2018-02-13 16:39:01 -08:00 committed by GitHub
commit dfd2b79382
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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> {}