> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# border-right-style

APISummary
## Introduction

The **border-right-style** CSS property sets the line style of an element's right [`border`](/next/api/css/properties/border.md).

## Examples

**This is an example below: css-api**

**Entry:** `src/border-right-style`
**Bundle:** `dist/border-right-style.lynx.bundle`

```tsx
import { root } from "@lynx-js/react";
import "./index.scss";

const BorderRightStyle = () => {
  const scrollViewStyle = {
    height: "100%",
  };

  const fixedAreaStyle = {
    width: "100%",
    height: "100%",
    flexDirection: "column" as const,
  };

  const styles = [
    ["solid", "dashed", "dotted"],
    ["double", "groove", "ridge"],
    ["inset", "outset", "hidden"],
  ];

  return (
    <scroll-view className="root" scroll-orientation="vertical" style={scrollViewStyle}>
      <view className="fixed_area" style={fixedAreaStyle}>
        {styles.map((row, rowIndex) => (
          <view key={`normal1-${rowIndex}`}>
            <view className="row">
              {row.map((style, colIndex) => (
                <view
                  key={`normal1-${rowIndex}-${colIndex}`}
                  className="box colorWidth1"
                  style={{ borderRightStyle: style }}
                >
                  <text className="text">{style}</text>
                </view>
              ))}
            </view>
          </view>
        ))}

        {styles.map((row, rowIndex) => (
          <view key={`normal2-${rowIndex}`}>
            <view className="row">
              {row.map((style, colIndex) => (
                <view
                  key={`normal2-${rowIndex}-${colIndex}`}
                  className="box colorWidth1"
                  style={{ borderRightStyle: style }}
                >
                  <text className="text">{style}</text>
                </view>
              ))}
            </view>
          </view>
        ))}

        {styles.map((row, rowIndex) => (
          <view key={`radius-${rowIndex}`}>
            <view className="row">
              {row.map((style, colIndex) => (
                <view
                  key={`radius-${rowIndex}-${colIndex}`}
                  className="box colorWidth2 radiusSame"
                  style={{ borderRightStyle: style }}
                >
                  <text className="text">{style}</text>
                </view>
              ))}
            </view>
          </view>
        ))}
      </view>
    </scroll-view>
  );
};

root.render(<BorderRightStyle />);

```

v0.11.0



## Syntax

```css
border-right-style: none;
border-right-style: hidden;
border-right-style: dotted;
border-right-style: dashed;
border-right-style: solid;
border-right-style: double;
border-right-style: groove;
border-right-style: ridge;
border-right-style: inset;
border-right-style: outset;
```

### Values

- `none`
  Like the `hidden` keyword, displays no border.

- `hidden`
  Like the `none` keywork, displays no border.

- `dotted`
  Displays a series of rounded dots. The spacing of the dots is not defined by the specification and is implementation-specific. The radius of the dots is half the computed value of the same side's [`border-width`](/next/api/css/properties/border-width.md).

- `dashed`
  Displays a series of short square-ended dashes or line segments. The exact size and length of the segments are not defined by the specification and are implementation-specific.

- `solid`
  Displays a single, straight, solid line.

- `double`
  Displays two straight lines that add up to the pixel size defined by [`border-width`](/next/api/css/properties/border-width.md).

- `groove`
  Displays a border with a carved appearance. It is the opposite of ridge.

- `ridge`
  Displays a border with an extruded appearance. It is the opposite of groove.

- `inset`
  Displays a border that makes the element appear embedded. It is the opposite of outset.

- `outset`
  Displays a border that makes the element appear embossed. It is the opposite of inset.

## Formal definition

| Initial value | solid |
| Applies to | all elements |
| Inherited | no |
| Animatable | no |


## Formal syntax

```
<line-style>
where
<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset

```

## Differences from the Web

- [mdn:border-right-style](https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-style)

Global values are not supported (inherit, initial, revert, unset, etc).

When value is 'none' or 'hidden', the `border-width` value is not 0.

Default value is 'solid'.

## Compatibility

**Compatibility Table**

**Query:** `css.properties.border-right-style`

[Source](https://github.com/lynx-family/lynx/blob/develop/tools/css_generator/css_defines/116-border-right-style.json) · [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-style)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| border-right-style | Yes (1.0) | Yes (3.4) | Yes (1.0) | Yes (1.0) | Yes (1.0) | Yes |

**`border-right-style`**

**Specifications:**

