> 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-left-width

APISummary
## Introduction

Used to set the width of the left border.

## Usage Examples

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

**Entry:** `src/border-left-width`
**Bundle:** `dist/border-left-width.lynx.bundle`

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

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

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

  const widthOptions = [
    ["thin", "medium", "thick"],
    ["1px", "10px", "2rpx"],
    ["1em", "0.1em", "0.3rem"],
  ];

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

        {widthOptions.map((row, rowIndex) => (
          <view key={`style-${rowIndex}`}>
            <view className="row">
              {row.map((width, colIndex) => (
                <view
                  key={`style-${rowIndex}-${colIndex}`}
                  className={`box styleDiff${colIndex}`}
                  style={{ borderLeftWidth: width }}
                >
                  <text className="text">{width}</text>
                </view>
              ))}
            </view>
          </view>
        ))}

        {widthOptions.map((row, rowIndex) => (
          <view key={`radius-${rowIndex}`}>
            <view className="row">
              {row.map((width, colIndex) => (
                <view
                  key={`radius-${rowIndex}-${colIndex}`}
                  className={`box styleDiff${colIndex} radiusStyle${colIndex}`}
                  style={{ borderLeftWidth: width }}
                >
                  <text className="text">{width}</text>
                </view>
              ))}
            </view>
          </view>
        ))}
      </view>
    </scroll-view>
  );
};

root.render(<BorderLeftWidth />);

```

v0.11.0



## Syntax

```css
border-left-width: thin;
border-left-width: medium;
```

### Values

- `thin`
  Thin border.

- `medium`
  Medium border.

- `thick`
  Thick border.

- [`<length>`](/next/api/css/data-type/length.md)
  Defines the border width with a specific size.

## Formal Definition

| Initial value | 0 |
| Applies to | All elements |
| Inherited | no |
| Animatable | yes |


## Formal Syntax

```css
border-left-width = <line-width>
<line-width> = thin | medium | thick | <length>
```

## Differences from the Web

- [mdn:border-left-width](https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-width)
- Does not support `inherit`, `initial`, `revert`, or `unset`.
- Default value is `0`, whereas the web default is `medium`.

## Compatibility

**Compatibility Table**

**Query:** `css.properties.border-left-width`

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

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| border-left-width | Yes (1.0) | Yes (3.4) | Yes (1.0) | Yes (1.0) | Yes (1.0) | Yes |

**`border-left-width`**

**Specifications:**

