-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
addons/docs/src/frameworks/react/__testfixtures__/8279-js-styled-docgen/docgen.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`react component properties 8279-js-styled-docgen 1`] = ` | ||
"import styled from 'styled-components'; | ||
import PropTypes from 'prop-types'; | ||
/** | ||
* Use \`A\` to provide a regular link | ||
*/ | ||
|
||
const A = styled('a')({ | ||
margin: '8px 0', | ||
outline: 'none' | ||
}); | ||
A.displayName = 'Link'; | ||
A.defaultProps = { | ||
children: 'This is a link' | ||
}; | ||
A.propTypes = { | ||
/** That should be the clickable element */ | ||
children: PropTypes.node.isRequired | ||
}; | ||
export default A; | ||
export const component = A;" | ||
`; |
23 changes: 23 additions & 0 deletions
23
addons/docs/src/frameworks/react/__testfixtures__/8279-js-styled-docgen/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import styled from 'styled-components'; | ||
import PropTypes from 'prop-types'; | ||
|
||
/** | ||
* Use `A` to provide a regular link | ||
*/ | ||
const A = styled('a')({ | ||
margin: '8px 0', | ||
outline: 'none', | ||
}); | ||
|
||
A.displayName = 'Link'; | ||
A.defaultProps = { | ||
children: 'This is a link', | ||
}; | ||
|
||
A.propTypes = { | ||
/** That should be the clickable element */ | ||
children: PropTypes.node.isRequired, | ||
}; | ||
export default A; | ||
|
||
export const component = A; |
7 changes: 7 additions & 0 deletions
7
addons/docs/src/frameworks/react/__testfixtures__/8279-js-styled-docgen/properties.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`react component properties 8279-js-styled-docgen 1`] = ` | ||
Object { | ||
"rows": Array [], | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters