Skip to main content

line

插件名#

line

安装#

npm install @jswork/styled-plugin-line

参数#

名称类型description
valuenumber线条的宽度

绝对居中的一种实现方式。

原理#

  1. 利用 border-bottom 实现各种宽度的线条
  2. todo: 后面会加上 hairline 的实现

用法#

<View plugin="line:1" my={10} />

演示#

Live Editor
Result
SyntaxError: Unexpected token (1:8)
1 : return ()
            ^