-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Image): improve handling of HTML props (#2316)
* feat(Image): improve handling of HTML props * style(mixed): rename function to partitionHTMLProps
- Loading branch information
1 parent
f26f7cc
commit e42e031
Showing
12 changed files
with
91 additions
and
74 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
docs/app/Examples/elements/Image/Usage/ImageExampleImageProps.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,13 @@ | ||
import React from 'react' | ||
import { Image } from 'semantic-ui-react' | ||
|
||
const ImageExampleImageProps = () => ( | ||
<Image | ||
alt='An example alt' | ||
size='small' | ||
src='/assets/images/wireframe/image-text.png' | ||
srcSet='/assets/images/wireframe/image.png 2x' | ||
/> | ||
) | ||
|
||
export default ImageExampleImageProps |
14 changes: 14 additions & 0 deletions
14
docs/app/Examples/elements/Image/Usage/ImageExampleWrappedImageProps.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,14 @@ | ||
import React from 'react' | ||
import { Image } from 'semantic-ui-react' | ||
|
||
const ImageExampleWrappedImageProps = () => ( | ||
<Image | ||
as='div' | ||
alt='An example alt' | ||
size='small' | ||
src='/assets/images/wireframe/image-text.png' | ||
srcSet='/assets/images/wireframe/image.png 2x' | ||
/> | ||
) | ||
|
||
export default ImageExampleWrappedImageProps |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.