# Text A generic text element. ## Import ```tsx import { Text } from '@coinbase/cds-web/typography/Text' ``` ## Examples ### Display Display styles are to be used very sparingly. Display styles supersede Title styles, so they are there for when you need to layer on more hierarchy. ```jsx live Display1 Display2 Display3 ``` ### Title Title styles are used to establish the primary hierarchy in a layout. They should be used to label sections. ```jsx live Title1 Title2 Title3 Title4 ``` ### Headline & Body Headline and body styles are your essential content styles. They’re versatile styles that can be used for paragraphs, data, labels for buttons. ```jsx live Headline Body ``` ### Label & Caption Label and caption styles are when you need to add hierarchy in your content. They ideally are used in conjunction with Headline and Body styles, but in extraordinarily dense interfaces they can replace Headline & Body should you need to present large data sets to users. They’re also great candidates for presenting numbers to the user as they have tabular numbers by default. ```jsx live Label1 Label2 Caption Legal ``` ### Features All text components support a few numeric typography styles, overflow, text transformation, flex display, and underline. Please check the Props section for more details. ### A11y On the web, there are different HTML elements to wrap texts with to communicated semantic meanings of the strings. Therefore, CDS does not make any assumptions about the semantic of the text but ask developers to choose the approriate semantic HTML element via the `as` prop. ```jsx Display // If we want large text but not as the page title Display ``` ### Headings Headings help users understand the hierarchical page organization. All pages on the web should at least have a `

` level heading providing the title or summary of the page. Screen readers users prefer that only the document title be `

` on a page. Headings should NOT be used inside tables header elements (``). When using headings, it is confusing to screen reader users to skip heading levels to be more specific (ex. do not go from `

` to `

`). However, it is permissible to use a higher heading level after a lower heading level, i.e. from `

`to`

`, if the outline of the page calls for it. One common misconception is that headings for a web app have consistent typography across different pages. That is not an accessibility requirement or a design guideline that our product designers follow. Therefore, based on the content layouts, product engineers should determine the approriate semantic tags to use for each string and choose the proper heading element when the texts convey hierarchical content information. Yale has a detailed [web accessibility article](https://usability.yale.edu/web-accessibility/articles/headings#:~:text=One%20of%20the%20most%20common,Do%20not%20overuse%20headings) about how to use headings if you want to learn more. In a nutshell, you can reference the following for the most common text semantics. - `h1` for page title (exactly one per page) - `h2`-`h4` for hierarchical section headings (CDS does not foresee the need for heading level 5 or 6 in Coinbase products). - `p` for paragraphs of text with default block display. It can be wrapped inside `blockquote`, `li`, or `label` elements for additional semantics. - `li` for bullet points in a list. - `time`, `abbr`, `sup`, `kbd`, etc, for granular semantics. - `pre` and `code` for preformatted code blocks. - `span` when no semantics are required (within buttons for example) and it also has default inline display. ## Props | Prop | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `about` | `string \| undefined` | No | `-` | - | | `accessKey` | `string \| undefined` | No | `-` | - | | `alignContent` | `ResponsiveProp
` | No | `-` | - | | `alignItems` | `ResponsiveProp
` | No | `-` | - | | `alignSelf` | `ResponsiveProp
` | No | `-` | - | | `aria-activedescendant` | `string \| undefined` | No | `-` | Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. | | `aria-atomic` | `Booleanish \| undefined` | No | `-` | Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. | | `aria-autocomplete` | `none \| list \| inline \| both \| undefined` | No | `-` | Indicates whether inputting text could trigger display of one or more predictions of the users intended value for an input and specifies how predictions would be presented if they are made. | | `aria-braillelabel` | `string \| undefined` | No | `-` | Defines a string value that labels the current element, which is intended to be converted into Braille. | | `aria-brailleroledescription` | `string \| undefined` | No | `-` | Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille. | | `aria-busy` | `Booleanish \| undefined` | No | `-` | - | | `aria-checked` | `boolean \| true \| false \| mixed \| undefined` | No | `-` | Indicates the current checked state of checkboxes, radio buttons, and other widgets. | | `aria-colcount` | `number \| undefined` | No | `-` | Defines the total number of columns in a table, grid, or treegrid. | | `aria-colindex` | `number \| undefined` | No | `-` | Defines an elements column index or position with respect to the total number of columns within a table, grid, or treegrid. | | `aria-colindextext` | `string \| undefined` | No | `-` | Defines a human readable text alternative of aria-colindex. | | `aria-colspan` | `number \| undefined` | No | `-` | Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. | | `aria-controls` | `string \| undefined` | No | `-` | Identifies the element (or elements) whose contents or presence are controlled by the current element. | | `aria-current` | `boolean \| true \| false \| page \| step \| location \| date \| time \| undefined` | No | `-` | Indicates the element that represents the current item within a container or set of related elements. | | `aria-describedby` | `string \| undefined` | No | `-` | Identifies the element (or elements) that describes the object. | | `aria-description` | `string \| undefined` | No | `-` | Defines a string value that describes or annotates the current element. | | `aria-details` | `string \| undefined` | No | `-` | Identifies the element that provides a detailed, extended description for the object. | | `aria-disabled` | `Booleanish \| undefined` | No | `-` | Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. | | `aria-dropeffect` | `none \| link \| copy \| execute \| move \| popup \| undefined` | No | `-` | Indicates what functions can be performed when a dragged object is released on the drop target. | | `aria-errormessage` | `string \| undefined` | No | `-` | Identifies the element that provides an error message for the object. | | `aria-expanded` | `Booleanish \| undefined` | No | `-` | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. | | `aria-flowto` | `string \| undefined` | No | `-` | Identifies the next element (or elements) in an alternate reading order of content which, at the users discretion, allows assistive technology to override the general default of reading in document source order. | | `aria-grabbed` | `Booleanish \| undefined` | No | `-` | Indicates an elements grabbed state in a drag-and-drop operation. | | `aria-haspopup` | `boolean \| true \| false \| dialog \| grid \| listbox \| menu \| tree \| undefined` | No | `-` | Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. | | `aria-hidden` | `Booleanish \| undefined` | No | `-` | Indicates whether the element is exposed to an accessibility API. | | `aria-invalid` | `boolean \| true \| false \| grammar \| spelling \| undefined` | No | `-` | Indicates the entered value does not conform to the format expected by the application. | | `aria-keyshortcuts` | `string \| undefined` | No | `-` | Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. | | `aria-label` | `string \| undefined` | No | `-` | Defines a string value that labels the current element. | | `aria-labelledby` | `string \| undefined` | No | `-` | Identifies the element (or elements) that labels the current element. | | `aria-level` | `number \| undefined` | No | `-` | Defines the hierarchical level of an element within a structure. | | `aria-live` | `off \| assertive \| polite \| undefined` | No | `-` | Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. | | `aria-modal` | `Booleanish \| undefined` | No | `-` | Indicates whether an element is modal when displayed. | | `aria-multiline` | `Booleanish \| undefined` | No | `-` | Indicates whether a text box accepts multiple lines of input or only a single line. | | `aria-multiselectable` | `Booleanish \| undefined` | No | `-` | Indicates that the user may select more than one item from the current selectable descendants. | | `aria-orientation` | `horizontal \| vertical \| undefined` | No | `-` | Indicates whether the elements orientation is horizontal, vertical, or unknown/ambiguous. | | `aria-owns` | `string \| undefined` | No | `-` | Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. | | `aria-placeholder` | `string \| undefined` | No | `-` | Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. | | `aria-posinset` | `number \| undefined` | No | `-` | Defines an elements number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. | | `aria-pressed` | `boolean \| true \| false \| mixed \| undefined` | No | `-` | Indicates the current pressed state of toggle buttons. | | `aria-readonly` | `Booleanish \| undefined` | No | `-` | Indicates that the element is not editable, but is otherwise operable. | | `aria-relevant` | `text \| additions \| additions removals \| additions text \| all \| removals \| removals additions \| removals text \| text additions \| text removals \| undefined` | No | `-` | Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. | | `aria-required` | `Booleanish \| undefined` | No | `-` | Indicates that user input is required on the element before a form may be submitted. | | `aria-roledescription` | `string \| undefined` | No | `-` | Defines a human-readable, author-localized description for the role of an element. | | `aria-rowcount` | `number \| undefined` | No | `-` | Defines the total number of rows in a table, grid, or treegrid. | | `aria-rowindex` | `number \| undefined` | No | `-` | Defines an elements row index or position with respect to the total number of rows within a table, grid, or treegrid. | | `aria-rowindextext` | `string \| undefined` | No | `-` | Defines a human readable text alternative of aria-rowindex. | | `aria-rowspan` | `number \| undefined` | No | `-` | Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. | | `aria-selected` | `Booleanish \| undefined` | No | `-` | Indicates the current selected state of various widgets. | | `aria-setsize` | `number \| undefined` | No | `-` | Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. | | `aria-sort` | `none \| ascending \| descending \| other \| undefined` | No | `-` | Indicates if items in a table or grid are sorted in ascending or descending order. | | `aria-valuemax` | `number \| undefined` | No | `-` | Defines the maximum allowed value for a range widget. | | `aria-valuemin` | `number \| undefined` | No | `-` | Defines the minimum allowed value for a range widget. | | `aria-valuenow` | `number \| undefined` | No | `-` | Defines the current value for a range widget. | | `aria-valuetext` | `string \| undefined` | No | `-` | Defines the human readable text alternative of aria-valuenow for a range widget. | | `as` | `symbol \| object \| path \| ComponentClass \| FunctionComponent \| area \| style \| div \| a \| abbr \| address \| article \| aside \| audio \| b \| base \| bdi \| bdo \| big \| blockquote \| body \| br \| button \| canvas \| caption \| center \| cite \| code \| col \| colgroup \| data \| datalist \| dd \| del \| details \| dfn \| dialog \| dl \| dt \| em \| embed \| fieldset \| figcaption \| figure \| footer \| form \| h1 \| h2 \| h3 \| h4 \| h5 \| h6 \| head \| header \| hgroup \| hr \| html \| i \| iframe \| img \| input \| ins \| kbd \| keygen \| label \| legend \| li \| link \| main \| map \| mark \| menu \| menuitem \| meta \| meter \| nav \| noindex \| noscript \| ol \| optgroup \| option \| output \| p \| param \| picture \| pre \| progress \| q \| rp \| rt \| ruby \| s \| samp \| search \| slot \| script \| section \| select \| small \| source \| span \| strong \| sub \| summary \| sup \| table \| template \| tbody \| td \| textarea \| tfoot \| th \| thead \| time \| title \| tr \| track \| u \| ul \| var \| video \| wbr \| webview \| svg \| animate \| animateMotion \| animateTransform \| circle \| clipPath \| defs \| desc \| ellipse \| feBlend \| feColorMatrix \| feComponentTransfer \| feComposite \| feConvolveMatrix \| feDiffuseLighting \| feDisplacementMap \| feDistantLight \| feDropShadow \| feFlood \| feFuncA \| feFuncB \| feFuncG \| feFuncR \| feGaussianBlur \| feImage \| feMerge \| feMergeNode \| feMorphology \| feOffset \| fePointLight \| feSpecularLighting \| feSpotLight \| feTile \| feTurbulence \| filter \| foreignObject \| g \| image \| line \| linearGradient \| marker \| mask \| metadata \| mpath \| pattern \| polygon \| polyline \| radialGradient \| rect \| set \| stop \| switch \| text \| textPath \| tspan \| use \| view` | No | `span` | The underlying element or component the polymorphic component will render. Changing as also changes the inherited native props (e.g. href for as=a) and the expected ref type. | | `aspectRatio` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - | | `autoCapitalize` | `off \| none \| on \| sentences \| words \| characters \| (string & {}) \| undefined` | No | `-` | - | | `autoCorrect` | `string \| undefined` | No | `-` | - | | `autoFocus` | `boolean \| undefined` | No | `-` | - | | `autoSave` | `string \| undefined` | No | `-` | - | | `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | - | | `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - | | `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - | | `borderBottomWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - | | `borderColor` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | - | | `borderEndWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - | | `borderRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - | | `borderStartWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - | | `borderTopLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - | | `borderTopRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - | | `borderTopWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - | | `borderWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - | | `bordered` | `boolean` | No | `-` | Add a border around all sides of the box. | | `borderedBottom` | `boolean` | No | `-` | Add a border to the bottom side of the box. | | `borderedEnd` | `boolean` | No | `-` | Add a border to the trailing side of the box. | | `borderedHorizontal` | `boolean` | No | `-` | Add a border to the leading and trailing sides of the box. | | `borderedStart` | `boolean` | No | `-` | Add a border to the leading side of the box. | | `borderedTop` | `boolean` | No | `-` | Add a border to the top side of the box. | | `borderedVertical` | `boolean` | No | `-` | Add a border to the top and bottom sides of the box. | | `bottom` | `ResponsiveProp>` | No | `-` | - | | `children` | `null \| string \| number \| false \| true \| ReactElement> \| Iterable \| ReactPortal` | No | `-` | - | | `className` | `string \| undefined` | No | `-` | - | | `color` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | - | | `columnGap` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - | | `content` | `string \| undefined` | No | `-` | - | | `contentEditable` | `Booleanish \| inherit \| plaintext-only \| undefined` | No | `-` | - | | `contextMenu` | `string \| undefined` | No | `-` | - | | `dangerouslySetBackground` | `string` | No | `-` | - | | `dangerouslySetColor` | `string` | No | `-` | - | | `dangerouslySetInnerHTML` | `{ __html: string \| TrustedHTML; } \| undefined` | No | `-` | - | | `datatype` | `string \| undefined` | No | `-` | - | | `defaultChecked` | `boolean \| undefined` | No | `-` | - | | `defaultValue` | `string \| number \| readonly string[] \| undefined` | No | `-` | - | | `dir` | `string \| undefined` | No | `-` | - | | `disabled` | `boolean` | No | `-` | - | | `display` | `ResponsiveProp` | No | `-` | - | | `draggable` | `Booleanish \| undefined` | No | `-` | - | | `elevation` | `0 \| 1 \| 2` | No | `-` | - | | `enterKeyHint` | `enter \| done \| go \| next \| previous \| search \| send \| undefined` | No | `-` | - | | `flexBasis` | `ResponsiveProp>` | No | `-` | - | | `flexDirection` | `ResponsiveProp` | No | `-` | - | | `flexGrow` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset` | No | `-` | - | | `flexShrink` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset` | No | `-` | - | | `flexWrap` | `ResponsiveProp` | No | `-` | - | | `font` | `ResponsiveProp` | No | `-` | - | | `fontFamily` | `ResponsiveProp` | No | `-` | - | | `fontSize` | `ResponsiveProp` | No | `-` | - | | `fontWeight` | `ResponsiveProp` | No | `-` | - | | `gap` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - | | `grid` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| none` | No | `-` | - | | `gridArea` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - | | `gridAutoColumns` | `ResponsiveProp>` | No | `-` | - | | `gridAutoFlow` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| row \| column \| dense` | No | `-` | - | | `gridAutoRows` | `ResponsiveProp>` | No | `-` | - | | `gridColumn` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - | | `gridColumnEnd` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - | | `gridColumnStart` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - | | `gridRow` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - | | `gridRowEnd` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - | | `gridRowStart` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - | | `gridTemplate` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| none` | No | `-` | - | | `gridTemplateAreas` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| none` | No | `-` | - | | `gridTemplateColumns` | `ResponsiveProp>` | No | `-` | - | | `gridTemplateRows` | `ResponsiveProp>` | No | `-` | - | | `height` | `ResponsiveProp>` | No | `-` | - | | `hidden` | `boolean \| undefined` | No | `-` | - | | `id` | `string \| undefined` | No | `-` | - | | `inlist` | `any` | No | `-` | - | | `inputMode` | `none \| search \| text \| tel \| url \| email \| numeric \| decimal \| undefined` | No | `-` | Hints at the type of data that might be entered by the user while editing the element or its contents | | `is` | `string \| undefined` | No | `-` | Specify that a standard HTML element should behave like a defined custom built-in element | | `itemID` | `string \| undefined` | No | `-` | - | | `itemProp` | `string \| undefined` | No | `-` | - | | `itemRef` | `string \| undefined` | No | `-` | - | | `itemScope` | `boolean \| undefined` | No | `-` | - | | `itemType` | `string \| undefined` | No | `-` | - | | `justifyContent` | `ResponsiveProp` | No | `-` | - | | `key` | `Key \| null \| undefined` | No | `-` | - | | `lang` | `string \| undefined` | No | `-` | - | | `left` | `ResponsiveProp>` | No | `-` | - | | `lineHeight` | `ResponsiveProp` | No | `-` | - | | `margin` | `ResponsiveProp<0 \| -3 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - | | `marginBottom` | `ResponsiveProp<0 \| -3 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - | | `marginEnd` | `ResponsiveProp<0 \| -3 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - | | `marginStart` | `ResponsiveProp<0 \| -3 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - | | `marginTop` | `ResponsiveProp<0 \| -3 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - | | `marginX` | `ResponsiveProp<0 \| -3 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - | | `marginY` | `ResponsiveProp<0 \| -3 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - | | `maxHeight` | `ResponsiveProp>` | No | `-` | - | | `maxWidth` | `ResponsiveProp>` | No | `-` | - | | `minHeight` | `ResponsiveProp>` | No | `-` | - | | `minWidth` | `ResponsiveProp>` | No | `-` | - | | `mono` | `boolean` | No | `-` | Use monospace font family. | | `noWrap` | `boolean` | No | `false` | Set text to be in a single line. | | `nonce` | `string \| undefined` | No | `-` | - | | `numberOfLines` | `number` | No | `-` | - | | `onAbort` | `ReactEventHandler \| undefined` | No | `-` | - | | `onAbortCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onAnimationEnd` | `AnimationEventHandler \| undefined` | No | `-` | - | | `onAnimationEndCapture` | `AnimationEventHandler \| undefined` | No | `-` | - | | `onAnimationIteration` | `AnimationEventHandler \| undefined` | No | `-` | - | | `onAnimationIterationCapture` | `AnimationEventHandler \| undefined` | No | `-` | - | | `onAnimationStart` | `AnimationEventHandler \| undefined` | No | `-` | - | | `onAnimationStartCapture` | `AnimationEventHandler \| undefined` | No | `-` | - | | `onAuxClick` | `MouseEventHandler \| undefined` | No | `-` | - | | `onAuxClickCapture` | `MouseEventHandler \| undefined` | No | `-` | - | | `onBeforeInput` | `FormEventHandler \| undefined` | No | `-` | - | | `onBeforeInputCapture` | `FormEventHandler \| undefined` | No | `-` | - | | `onBlur` | `FocusEventHandler \| undefined` | No | `-` | - | | `onBlurCapture` | `FocusEventHandler \| undefined` | No | `-` | - | | `onCanPlay` | `ReactEventHandler \| undefined` | No | `-` | - | | `onCanPlayCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onCanPlayThrough` | `ReactEventHandler \| undefined` | No | `-` | - | | `onCanPlayThroughCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onChange` | `FormEventHandler \| undefined` | No | `-` | - | | `onChangeCapture` | `FormEventHandler \| undefined` | No | `-` | - | | `onClick` | `MouseEventHandler \| undefined` | No | `-` | - | | `onClickCapture` | `MouseEventHandler \| undefined` | No | `-` | - | | `onCompositionEnd` | `CompositionEventHandler \| undefined` | No | `-` | - | | `onCompositionEndCapture` | `CompositionEventHandler \| undefined` | No | `-` | - | | `onCompositionStart` | `CompositionEventHandler \| undefined` | No | `-` | - | | `onCompositionStartCapture` | `CompositionEventHandler \| undefined` | No | `-` | - | | `onCompositionUpdate` | `CompositionEventHandler \| undefined` | No | `-` | - | | `onCompositionUpdateCapture` | `CompositionEventHandler \| undefined` | No | `-` | - | | `onContextMenu` | `MouseEventHandler \| undefined` | No | `-` | - | | `onContextMenuCapture` | `MouseEventHandler \| undefined` | No | `-` | - | | `onCopy` | `ClipboardEventHandler \| undefined` | No | `-` | - | | `onCopyCapture` | `ClipboardEventHandler \| undefined` | No | `-` | - | | `onCut` | `ClipboardEventHandler \| undefined` | No | `-` | - | | `onCutCapture` | `ClipboardEventHandler \| undefined` | No | `-` | - | | `onDoubleClick` | `MouseEventHandler \| undefined` | No | `-` | - | | `onDoubleClickCapture` | `MouseEventHandler \| undefined` | No | `-` | - | | `onDrag` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragCapture` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragEnd` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragEndCapture` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragEnter` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragEnterCapture` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragExit` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragExitCapture` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragLeave` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragLeaveCapture` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragOver` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragOverCapture` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragStart` | `DragEventHandler \| undefined` | No | `-` | - | | `onDragStartCapture` | `DragEventHandler \| undefined` | No | `-` | - | | `onDrop` | `DragEventHandler \| undefined` | No | `-` | - | | `onDropCapture` | `DragEventHandler \| undefined` | No | `-` | - | | `onDurationChange` | `ReactEventHandler \| undefined` | No | `-` | - | | `onDurationChangeCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onEmptied` | `ReactEventHandler \| undefined` | No | `-` | - | | `onEmptiedCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onEncrypted` | `ReactEventHandler \| undefined` | No | `-` | - | | `onEncryptedCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onEnded` | `ReactEventHandler \| undefined` | No | `-` | - | | `onEndedCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onError` | `ReactEventHandler \| undefined` | No | `-` | - | | `onErrorCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onFocus` | `FocusEventHandler \| undefined` | No | `-` | - | | `onFocusCapture` | `FocusEventHandler \| undefined` | No | `-` | - | | `onGotPointerCapture` | `PointerEventHandler \| undefined` | No | `-` | - | | `onGotPointerCaptureCapture` | `PointerEventHandler \| undefined` | No | `-` | - | | `onInput` | `FormEventHandler \| undefined` | No | `-` | - | | `onInputCapture` | `FormEventHandler \| undefined` | No | `-` | - | | `onInvalid` | `FormEventHandler \| undefined` | No | `-` | - | | `onInvalidCapture` | `FormEventHandler \| undefined` | No | `-` | - | | `onKeyDown` | `KeyboardEventHandler \| undefined` | No | `-` | - | | `onKeyDownCapture` | `KeyboardEventHandler \| undefined` | No | `-` | - | | `onKeyPress` | `KeyboardEventHandler \| undefined` | No | `-` | - | | `onKeyPressCapture` | `KeyboardEventHandler \| undefined` | No | `-` | - | | `onKeyUp` | `KeyboardEventHandler \| undefined` | No | `-` | - | | `onKeyUpCapture` | `KeyboardEventHandler \| undefined` | No | `-` | - | | `onLoad` | `ReactEventHandler \| undefined` | No | `-` | - | | `onLoadCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onLoadStart` | `ReactEventHandler \| undefined` | No | `-` | - | | `onLoadStartCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onLoadedData` | `ReactEventHandler \| undefined` | No | `-` | - | | `onLoadedDataCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onLoadedMetadata` | `ReactEventHandler \| undefined` | No | `-` | - | | `onLoadedMetadataCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onLostPointerCapture` | `PointerEventHandler \| undefined` | No | `-` | - | | `onLostPointerCaptureCapture` | `PointerEventHandler \| undefined` | No | `-` | - | | `onMouseDown` | `MouseEventHandler \| undefined` | No | `-` | - | | `onMouseDownCapture` | `MouseEventHandler \| undefined` | No | `-` | - | | `onMouseEnter` | `MouseEventHandler \| undefined` | No | `-` | - | | `onMouseLeave` | `MouseEventHandler \| undefined` | No | `-` | - | | `onMouseMove` | `MouseEventHandler \| undefined` | No | `-` | - | | `onMouseMoveCapture` | `MouseEventHandler \| undefined` | No | `-` | - | | `onMouseOut` | `MouseEventHandler \| undefined` | No | `-` | - | | `onMouseOutCapture` | `MouseEventHandler \| undefined` | No | `-` | - | | `onMouseOver` | `MouseEventHandler \| undefined` | No | `-` | - | | `onMouseOverCapture` | `MouseEventHandler \| undefined` | No | `-` | - | | `onMouseUp` | `MouseEventHandler \| undefined` | No | `-` | - | | `onMouseUpCapture` | `MouseEventHandler \| undefined` | No | `-` | - | | `onPaste` | `ClipboardEventHandler \| undefined` | No | `-` | - | | `onPasteCapture` | `ClipboardEventHandler \| undefined` | No | `-` | - | | `onPause` | `ReactEventHandler \| undefined` | No | `-` | - | | `onPauseCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onPlay` | `ReactEventHandler \| undefined` | No | `-` | - | | `onPlayCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onPlaying` | `ReactEventHandler \| undefined` | No | `-` | - | | `onPlayingCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onPointerCancel` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerCancelCapture` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerDown` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerDownCapture` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerEnter` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerLeave` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerMove` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerMoveCapture` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerOut` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerOutCapture` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerOver` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerOverCapture` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerUp` | `PointerEventHandler \| undefined` | No | `-` | - | | `onPointerUpCapture` | `PointerEventHandler \| undefined` | No | `-` | - | | `onProgress` | `ReactEventHandler \| undefined` | No | `-` | - | | `onProgressCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onRateChange` | `ReactEventHandler \| undefined` | No | `-` | - | | `onRateChangeCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onReset` | `FormEventHandler \| undefined` | No | `-` | - | | `onResetCapture` | `FormEventHandler \| undefined` | No | `-` | - | | `onResize` | `ReactEventHandler \| undefined` | No | `-` | - | | `onResizeCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onScroll` | `UIEventHandler \| undefined` | No | `-` | - | | `onScrollCapture` | `UIEventHandler \| undefined` | No | `-` | - | | `onSeeked` | `ReactEventHandler \| undefined` | No | `-` | - | | `onSeekedCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onSeeking` | `ReactEventHandler \| undefined` | No | `-` | - | | `onSeekingCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onSelect` | `ReactEventHandler \| undefined` | No | `-` | - | | `onSelectCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onStalled` | `ReactEventHandler \| undefined` | No | `-` | - | | `onStalledCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onSubmit` | `FormEventHandler \| undefined` | No | `-` | - | | `onSubmitCapture` | `FormEventHandler \| undefined` | No | `-` | - | | `onSuspend` | `ReactEventHandler \| undefined` | No | `-` | - | | `onSuspendCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onTimeUpdate` | `ReactEventHandler \| undefined` | No | `-` | - | | `onTimeUpdateCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onTouchCancel` | `TouchEventHandler \| undefined` | No | `-` | - | | `onTouchCancelCapture` | `TouchEventHandler \| undefined` | No | `-` | - | | `onTouchEnd` | `TouchEventHandler \| undefined` | No | `-` | - | | `onTouchEndCapture` | `TouchEventHandler \| undefined` | No | `-` | - | | `onTouchMove` | `TouchEventHandler \| undefined` | No | `-` | - | | `onTouchMoveCapture` | `TouchEventHandler \| undefined` | No | `-` | - | | `onTouchStart` | `TouchEventHandler \| undefined` | No | `-` | - | | `onTouchStartCapture` | `TouchEventHandler \| undefined` | No | `-` | - | | `onTransitionEnd` | `TransitionEventHandler \| undefined` | No | `-` | - | | `onTransitionEndCapture` | `TransitionEventHandler \| undefined` | No | `-` | - | | `onVolumeChange` | `ReactEventHandler \| undefined` | No | `-` | - | | `onVolumeChangeCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onWaiting` | `ReactEventHandler \| undefined` | No | `-` | - | | `onWaitingCapture` | `ReactEventHandler \| undefined` | No | `-` | - | | `onWheel` | `WheelEventHandler \| undefined` | No | `-` | - | | `onWheelCapture` | `WheelEventHandler \| undefined` | No | `-` | - | | `opacity` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset` | No | `-` | - | | `overflow` | `clip \| wrap \| truncate \| break` | No | `-` | Set overflow behavior. | | `padding` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - | | `paddingBottom` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - | | `paddingEnd` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - | | `paddingStart` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - | | `paddingTop` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - | | `paddingX` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - | | `paddingY` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - | | `pin` | `top \| bottom \| left \| right \| all` | No | `-` | Direction in which to absolutely pin the box. | | `position` | `ResponsiveProp` | No | `-` | - | | `prefix` | `string \| undefined` | No | `-` | - | | `property` | `string \| undefined` | No | `-` | - | | `radioGroup` | `string \| undefined` | No | `-` | - | | `ref` | `any` | No | `-` | - | | `rel` | `string \| undefined` | No | `-` | - | | `renderEmptyNode` | `boolean` | No | `-` | - | | `resource` | `string \| undefined` | No | `-` | - | | `results` | `number \| undefined` | No | `-` | - | | `rev` | `string \| undefined` | No | `-` | - | | `right` | `ResponsiveProp>` | No | `-` | - | | `role` | `AriaRole \| undefined` | No | `-` | - | | `rowGap` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - | | `security` | `string \| undefined` | No | `-` | - | | `slashedZero` | `boolean` | No | `false` | Use character for number zero with a slash through it to differentiate it from the letter O. | | `slot` | `string \| undefined` | No | `-` | - | | `spellCheck` | `Booleanish \| undefined` | No | `-` | - | | `style` | `CSSProperties` | No | `-` | - | | `suppressContentEditableWarning` | `boolean \| undefined` | No | `-` | - | | `suppressHydrationWarning` | `boolean \| undefined` | No | `-` | - | | `tabIndex` | `number \| undefined` | No | `-` | - | | `tabularNumbers` | `boolean` | No | `false` | Activates the set of figures where numbers are all of the same size, allowing them to be easily aligned. | | `testID` | `string` | No | `-` | Used to locate this element in unit and end-to-end tests. Under the hood, testID translates to data-testid on Web. On Mobile, testID stays the same - testID | | `textAlign` | `ResponsiveProp
` | No | `-` | - | | `textDecoration` | `ResponsiveProp` | No | `-` | - | | `textTransform` | `ResponsiveProp` | No | `-` | - | | `title` | `string \| undefined` | No | `-` | - | | `top` | `ResponsiveProp>` | No | `-` | - | | `transform` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| none` | No | `-` | - | | `translate` | `yes \| no \| undefined` | No | `-` | - | | `typeof` | `string \| undefined` | No | `-` | - | | `underline` | `boolean` | No | `false` | Set text decoration to underline. | | `unselectable` | `off \| on \| undefined` | No | `-` | - | | `userSelect` | `ResponsiveProp` | No | `-` | - | | `visibility` | `ResponsiveProp` | No | `-` | - | | `vocab` | `string \| undefined` | No | `-` | - | | `width` | `ResponsiveProp>` | No | `-` | - | | `zIndex` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |