--- title: Interactivity description: JSX style props to enhance interactivity on an element --- ## Accent Color Use the `accentColor` prop to set the accent color for browser generated user-interface controls. ```jsx // hardcoded // token value ``` | Prop | CSS Property | Token Category | | ------------- | -------------- | -------------- | | `accentColor` | `accent-color` | `colors` | ## Appearance Use the `appearance` prop to set the appearance of an element. ```jsx ``` | Prop | CSS Property | Token Category | | ------------ | ------------ | -------------- | | `appearance` | `appearance` | - | ## Caret Color Use the `caretColor` prop to set the color of the text cursor (caret) in an input or textarea ```jsx // hardcoded // token value ``` | Prop | CSS Property | Token Category | | ------------ | ------------- | -------------- | | `caretColor` | `caret-color` | `colors` | ## Cursor Use the `cursor` prop to set the mouse cursor image to show when the mouse pointer is over an element. ```jsx ``` | Prop | CSS Property | Token Category | | -------- | ------------ | -------------- | | `cursor` | `cursor` | - | ## Pointer Events Use the `pointerEvents` prop to control how pointer events are handled on an element. ```jsx Can't click me ``` | Prop | CSS Property | Token Category | | --------------- | ---------------- | -------------- | | `pointerEvents` | `pointer-events` | - | ## Resize Use the `resize` prop to control whether an element is resizable, and if so, in which directions. ```jsx ``` | Prop | CSS Property | Token Category | | -------- | ------------ | -------------- | | `resize` | `resize` | - | ## Scrollbar Use the `scrollbar` prop to customize the appearance of scrollbars. ```jsx Scrollbar hidden ``` ## Scroll Behavior Use the `scrollBehavior` prop to set the behavior for a scrolling box when scrolling is triggered by the navigation or JavaScript code. ```jsx
Scroll me
``` | Prop | CSS Property | Token Category | | ---------------- | ----------------- | -------------- | | `scrollBehavior` | `scroll-behavior` | - | ## Scroll Margin Use the `scrollMargin*` prop to set margins around scroll containers. ```jsx Scrollbar Container with block padding ``` | Prop | CSS Property | Token Category | | ------------------------------------- | ---------------------------- | -------------- | | `scrollMarginX` ,`scrollMarginInline` | `scroll-margin-inline` | `spacing` | | `scrollMarginInlineStart` | `scroll-margin-inline-start` | `spacing` | | `scrollMarginInlineEnd` | `scroll-margin-inline-end` | `spacing` | | `scrollMarginY` , `scrollMarginBlock` | `scroll-margin-block` | `spacing` | | `scrollMarginBlockStart` | `scroll-margin-block-start` | `spacing` | | `scrollMarginBlockEnd` | `scroll-margin-block-end` | `spacing` | | `scrollMarginLeft` | `scroll-margin-left` | `spacing` | | `scrollMarginRight` | `scroll-margin-right` | `spacing` | | `scrollMarginTop` | `scroll-margin-top` | `spacing` | | `scrollMarginBottom` | `scroll-margin-bottom` | `spacing` | ## Scroll Padding Use the `scrollPadding*` prop to set padding inside scroll containers. ```jsx Scrollbar Container with block padding ``` | Prop | CSS Property | Token Category | | ---------------------------------------- | ----------------------------- | -------------- | | `scrollPaddingX` , `scrollPaddingInline` | `scroll-padding-inline` | `spacing` | | `scrollPaddingInlineStart` | `scroll-padding-inline-start` | `spacing` | | `scrollPaddingInlineEnd` | `scroll-padding-inline-end` | `spacing` | | `scrollPaddingY` , `scrollPaddingBlock` | `scroll-padding-block` | `spacing` | | `scrollPaddingBlockStart` | `scroll-padding-block-start` | `spacing` | | `scrollPaddingBlockEnd` | `scroll-padding-block-end` | `spacing` | | `scrollPaddingLeft` | `scroll-padding-left` | `spacing` | | `scrollPaddingRight` | `scroll-padding-right` | `spacing` | | `scrollPaddingTop` | `scroll-padding-top` | `spacing` | | `scrollPaddingBottom` | `scroll-padding-bottom` | `spacing` | ## Scroll Snap Margin Use the `scrollSnapMargin*` prop to set margins around scroll containers. ```jsx Scrollbar Container with block padding ``` | Prop | CSS Property | Token Category | | ------------------------ | ---------------------- | -------------- | | `scrollSnapMargin` | `scroll-margin` | `spacing` | | `scrollSnapMarginTop` | `scroll-margin-top` | `spacing` | | `scrollSnapMarginBottom` | `scroll-margin-bottom` | `spacing` | | `scrollSnapMarginLeft` | `scroll-margin-left` | `spacing` | | `scrollSnapMarginRight` | `scroll-margin-right` | `spacing` | ## Scroll Snap Type Use the `scrollSnapType` prop to control how strictly snap points are enforced in a scroll container. ```jsx Scroll container with x snap type ``` | Value | | | ------ | ------------------------------------ | | `none` | `none` | | `x` | `x var(--scroll-snap-strictness)` | | `y` | `y var(--scroll-snap-strictness)` | | `both` | `both var(--scroll-snap-strictness)` | ## Scroll Snap Strictness Use the `scrollSnapStrictness` prop to set the scroll snap strictness of an element. This requires `scrollSnapType` to be set to `x`,`y` or `both`. It's values can be `mandatory` or `proximity` values, and maps to `var(--scroll-snap-strictness)`. ```jsx Item 1 Item 2 ``` | Prop | CSS Property | Token Category | | ---------------------- | -------------------------- | -------------- | | `scrollSnapStrictness` | `--scroll-snap-strictness` | - | ## Touch Action Use the `touchAction` prop to control how an element's region can be manipulated by a touchscreen user ```jsx ``` | Prop | CSS Property | Token Category | | ------------- | -------------- | -------------- | | `touchAction` | `touch-action` | - | ## User Select Use the `userSelect` prop to control whether the user can select text within an element. ```jsx

Can't Select me

``` | Prop | CSS Property | Token Category | | ------------ | ------------- | -------------- | | `userSelect` | `user-select` | - | ## Will Change Use the `willChange` prop to hint browsers how an element's property is expected to change. ```jsx ``` | Prop | CSS Property | Token Category | | ------------ | ------------- | -------------- | | `willChange` | `will-change` | - |