mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #23595 from wereHamster/catalog-react-specimen-sourceText
Catalog: ReactSpecimen supports a 'sourceText' prop
This commit is contained in:
commit
dfd2b79382
@ -36,7 +36,7 @@ render(config, document.body);
|
||||
markdown`
|
||||
# Test
|
||||
|
||||
${<ReactSpecimen>
|
||||
${<ReactSpecimen sourceText='.'>
|
||||
<div />
|
||||
</ReactSpecimen>}
|
||||
`;
|
||||
|
||||
3
types/catalog/index.d.ts
vendored
3
types/catalog/index.d.ts
vendored
@ -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> {}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user