About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
DoDontRow
The <DoDontRow>
component is a custom row used alongside the <DoDont>
component, which now includes built in columns.
Example


This is some text
This is some text
This is some text
Caption title
Caption
Caption title
Caption
4:3
16:9
2:1
9:16
1:2
3:4
1:1
Code
Image
Text
Video
Aspect Ratios
<DoDontRow><DoDont aspectRatio="4:3" text="4:3" /><DoDont aspectRatio="16:9" text="16:9" /><DoDont aspectRatio="2:1" text="2:1" /></DoDontRow><DoDontRow><DoDont aspectRatio="9:16" text="9:16" /><DoDont aspectRatio="1:2" text="1:2" /><DoDont aspectRatio="3:4" text="3:4" />
Props
DoDontRow
property | propType | required | default | description |
---|---|---|---|---|
children | node | yes | child node, expects a DoDont component |
Do & Dont
property | propType | required | default | description |
---|---|---|---|---|
children | node | child node, expects a markdown image or <Video> component | ||
text | string | text to display inside the component instead of an image or video | ||
caption | string | caption | ||
captionTitle | string | caption title | ||
color | string | light | set to dark for dark background card | |
aspectRatio | string | 1:1 ,1:2 ,2:1 ,3:4 ,4:3 ,16:9 ,9:16 | ||
type | string | do | specify the type of example with do or dont | |
…columnProps | number | colMd=4, colLg=4 | specify any <Column> props to pass down |