Skip to main content

Cell

A navigation element to display a page of categorized content.

Submit feedback
github
import { Cell } from '@uhg-abyss/mobile';
<Cell />

Leading Content

The leadingContent prop defines the cell's content on the left-hand side. This may contain the IconBrand component, a utility icon (IconSymbol), or an Avatar.

Main Content

The eyebrow prop defines the cell's eyebrow. This prop can either be text or a custom component such as Badge.

The heading prop defines the cell's heading.

The subheading prop defines the cell's subheading.

The paragraph prop defines the cell's paragraph

The trailingIcon prop placed an icon at the end of the paragraph. This will not show unless there are also defined paragraph and onPress props. When this icon is present, only the icon is pressable, not the entire cell.

A link can be displayed below the paragraph using the link prop. A link may also be passed to the value prop to be displayed on the right side of the cell.

Trailing Content

The value prop defines the value component on the right side of the cell. This is generally used to display a numerical value but can also display the Link component. If the value prop exists, the cell cannot contain an onPress function.

The indicator prop defines the indicator component on the right side of the cell. Unlike value, this prop can co-exist with an onPress function. Either a string or a custom Component can be passed here.

The navIcon prop defines the icon that appears on the far right side of the cell. This icon will only exist when an onPress function exists.

isDisabled

isDisabled is a prop available for type radio, checkbox, and toggle.

When isDisabled is present in CellGroup, the entire group is disabled and cannot be modified. However, if isDisabled is present in Cell, only that cell is disabled and cannot be modified.

Cell Props

Prop NameTypeDefaultDescription
eyebrowstring | node-The eyebrow of the cell
headingstring-The heading of the cell
iconnode-Icon displayed on the left side of the cell
indicatorstring | node-Indicator text or link on the right side of the cell
isDisabledboolean-Disables the radio button, toggle, or checkbox inside of cell
navIconnode-Icon used on the right side of the cell
onChangefunction-Callback fired when the cell value is changed
onPressfunction-Callback fired when the cell is pressed
paragraphstring-The paragraph of the cell
selectAllboolean-Flag to uses cell as a select all checkbox
subheadingstring-The subheading of the cell
type"default" | "toggle" | "radio" | "checkbox"-The type of cell
valueany-The value of the cell

Cell Classes

Class NameDescription
abyss-cell-checkbox-buttonCheckbox component
abyss-cell-content-wrapperThe content wrapper of the cell
abyss-cell-eyebrowCell eyebrow
abyss-cell-headingCell heading
abyss-cell-icon-buttonThe icon button at the end of the paragraph
abyss-cell-indicatorCell indicator
abyss-cell-leading-contentThe leading content. Can include IconBrand component, a utility icon, or an Avatar
abyss-cell-nav-icononPress icon to the far right of cell
abyss-cell-paragraphCell paragraph
abyss-cell-radio-buttonRadio component
abyss-cell-rootCell root
abyss-cell-subheadingCell subheading
abyss-cell-toggle-buttonToggleSwitch component
abyss-cell-trailing-iconThe icon placed at the end of the paragraph
abyss-cell-valueCell value

It is the responsibility of consuming teams to make sure all components within Cell are accessible.
When possible, please test on physical devices for accessibility accuracy.

Cell Tokens

Token NameValue
cell.color.surface.container.rest
#FFFFFF
cell.color.surface.container.active
#F3F3F3
cell.color.border.content
#CBCCCD
cell.color.text.label
#323334
cell.color.text.indicator
#007000
cell.color.text.value-text
#323334
cell.color.text.heading
#002677
cell.color.text.paragraph
#4B4D4F
cell.color.text.subheading
#323334
cell.color.text.eyebrow
#4B4D4F
cell.color.icon.leading.utility
#002677
cell.color.icon.trailing.utility
#4B4D4F
cell.color.icon.trailing.interactive
#196ECF
cell.border-width.bottom.content
0.5
cell.sizing.icon.all.leading
24
cell.sizing.icon.all.trailing
24
cell.spacing.padding.horizontal.container
16
cell.spacing.padding.left.container
16
cell.spacing.padding.right.content
16
cell.spacing.padding.vertical.content
16
cell.spacing.gap.horizontal.content
16
cell.spacing.gap.horizontal.trailing-text
8
cell.spacing.gap.vertical.main-content
2

Cell Classes

V2V1Status
cell-checkbox-buttoncell-checkbox-buttonUnchanged
cell-content-wrappercell-content-wrapperUnchanged
cell-eyebrowcell-eyebrowUnchanged
cell-headingcell-titleRenamed
cell-icon-button-Added
-cell-icon-rightRemoved
-cell-indicatorRemoved
-cell-info-buttonRemoved
-cell-info-iconRemoved
cell-leading-content-Added
-cell-left-wrapperRemoved
cell-nav-icon-Added
cell-paragraphcell-descriptionRenamed
cell-radio-buttoncell-radio-buttonUnchanged
-cell-right-wrapperRemoved
cell-rootcell-rootUnchanged
cell-subheadingcell-subtitleRenamed
cell-toggle-buttoncell-toggle-buttonUnchanged
cell-trailing-icon-Added
-cell-valueRemoved

Cell Props

V2V1Status
eyebroweyebrowUnchanged
-footerRemoved
headingtitleRenamed
-highlightRemoved
-iconBackgroundColorRemoved
indicatorindicatorUnchanged
isDisabledisDisabledUnchanged
leadingContenticonRenamed
link-Added
navIcon-Added
onChangeonChangeUnchanged
onPressonPressUnchanged
onPressInonPressInUnchanged
onPressOutonPressOutUnchanged
paragraphdescriptionRenamed
-pressIconRemoved
selectAllselectAllUnchanged
subheadingsubtitleRenamed
-titleColorRemoved
-titleWeightRemoved
trailingIcon-Added
typetypeUnchanged
valuevalueUnchanged
Table of Contents