You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Stackstyle={{width: '100%'}}><River><River.Visual><imgsrc="/images/placeholder.png"alt="placeholder, blank area with a gray background color"/></River.Visual><River.Content><Heading>Heading</Heading><Text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit ullamcorper id. Aliquam luctus sed turpis
felis nam pulvinar risus elementum.
</Text><Linkhref="#">Call to action</Link></River.Content></River><Riveralign="end"><River.Visual><imgsrc="/images/placeholder.png"alt="placeholder, blank area with a gray background color"/></River.Visual><River.Content><Heading>Heading</Heading><Text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit ullamcorper id. Aliquam luctus sed turpis
felis nam pulvinar risus elementum.
</Text><Linkhref="#">Call to action</Link></River.Content></River><Riveralign="center"><River.Visual><imgsrc="/images/placeholder.png"alt="placeholder, blank area with a gray background color"/></River.Visual><River.Content><Label>Label</Label><Heading>Heading</Heading><Text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit ullamcorper id. Aliquam luctus sed turpis
felis nam pulvinar risus elementum.
</Text><Linkhref="#">Call to action</Link></River.Content></River></Stack>
GridLine variant
The gridline variant adds lateral padding to the River component and applies a full-bleed visual background by default, making it suitable for use within bordered grid layouts.
<Stackstyle={{width: '100%'}}><Rivervariant="gridline"><River.Visual><imgsrc="/images/placeholder.png"alt="placeholder, blank area with a gray background color"/></River.Visual><River.Content><Heading>GridLine variant</Heading><Text>Use the gridline variant when the River needs lateral spacing to align with bordered grid layouts.</Text><Linkhref="#">Call to action</Link></River.Content></River><Rivervariant="gridline"align="end"><River.Visual><imgsrc="/images/placeholder.png"alt="placeholder, blank area with a gray background color"/></River.Visual><River.Content><Heading>GridLine variant</Heading><Text>The variant works with all alignment options.</Text><Linkhref="#">Call to action</Link></River.Content></River></Stack>
Image to text ratio
<Stackstyle={{width: '100%'}}>{/* 50/50 (default) example */}<River><River.Visual><imgsrc="/images/placeholder.png"alt="placeholder, blank area with a gray background color"/></River.Visual><River.Content><Heading>50/50</Heading><Text><strong>By default</strong>, River applies a 50/50 image to text split.
</Text></River.Content></River>{/* 60/40 example */}<RiverimageTextRatio="60:40"><River.Visual><imgsrc="/images/placeholder.png"alt="placeholder, blank area with a gray background color"/></River.Visual><River.Content><Heading>60/40</Heading><Text>This example applies an optional 60/40 image to text split.</Text></River.Content></River></Stack>
Video
<Riverstyle={{width: '100%'}}imageTextRatio="60:40"><River.VisualhasShadow={false}><videoloopplaysInlineautoPlaymutedposter="https://github.githubassets.com/images/modules/site/issues/issue-tasks-progress-placeholder.png"><sourcetype="video/mp4; codecs=hevc,mp4a.40.2"src="https://github.githubassets.com/images/modules/site/issues/issue-tasks-progress.hevc.mp4"/><sourcetype="video/mp4; codecs=avc1.4D401E,mp4a.40.2"src="https://github.githubassets.com/images/modules/site/issues/issue-tasks-progress.h264.mp4"/></video></River.Visual><River.Content><Heading>Break issues into actionable tasks</Heading><Text>
Tackle complex issues with task lists and track their status with new progress indicators. Convert tasks into
their own issues and navigate your work hierarchy.
</Text></River.Content></River>
Alternative heading levels
<Riverstyle={{width: '100%'}}imageTextRatio="60:40"><River.Visual><imgsrc="/images/placeholder.png"alt="placeholder with a gray background color"/></River.Visual><River.Content><Headingas="h1">Alternative heading levels</Heading><Text>Use the 'as' prop to specify alternative heading levels. The default is 'h3'.</Text></River.Content></River>
Duotone
<Riverstyle={{width: '100%'}}><River.Visual><imgsrc="/images/placeholder.png"alt="placeholder, blank area with a gray background color"/></River.Visual><River.Content><Textsize="300"><b>This first sentence is highlighted</b> and here is where the body copy starts. Remember to keep this nice and
succinct.
</Text><Linkhref="#">Call to action</Link></River.Content></River>
River breakout
<RiverBreakoutstyle={{width: '100%'}}><RiverBreakout.A11yHeading>Accelerate workflows</RiverBreakout.A11yHeading><RiverBreakout.Visual><imgsrc="/images/placeholder.png"alt="placeholder, blank area with a gray background color"/></RiverBreakout.Visual><RiverBreakout.ContenttrailingComponent={()=>(<Timeline><Timeline.Item><b>GitHub Codespaces</b> offers a complete dev environment in seconds.
</Timeline.Item><Timeline.Item><b>GitHub Copilot</b> is your AI pair programmer that empowers you to complete tasks.
</Timeline.Item></Timeline>)}><Text><b>This first sentence is a river breakout headline.</b> And this is where the body copy starts. Remember to keep
these nice and succinct.
</Text><Linkhref="#">Call to action</Link></RiverBreakout.Content></RiverBreakout>
Component props
River Required
Name
Type
Default
Description
align
'start', 'end', 'center'
Alignment of text content relative to the Visual position
imageTextRatio
'50:50', '60:40'
The aspect ratio applied to the image in relation to the adjacent text. Affects overall layout proportions.
variant
'default', 'gridline'
Visual variant. Use gridline to add lateral padding for bordered grid layouts.
className
string
Sets a custom class on the root element
id
string
Sets a custom id
ref
React.RefObject
Forward a Ref to the underlying DOM node
River.Visual and RiverBreakout.Visual Required
Name
Type
Default
Description
fillMedia
boolean
true
Automatically styles images and video to fill and fit the width of the parent. Disable this setting if you have bespoke styling requirements.
children
ReactElement
Bring your own component (BYOC) img or ReactElement (E.g. Next.js Image component)
hasShadow
boolean
false
Shadow applied to the children. Set be false when the child node has a transparent background.
className
string
Sets a custom class on the root element
id
string
Sets a custom id
ref
React.RefObject
Forward a Ref to the underlying DOM node
rounded
boolean
true
Toggle visually rounded corners. Enabled by default.
River.Content and RiverBreakout.Content Required
Label, Text,Heading, Link are the only children accepted. They can be composed in any order, but their rendered output will always be in a predetermined order.