StyleProps interface
通用样式属性:可被布局容器等组件继承的样式集合
Signature
interface StylePropsProperties
Property | Modifiers | Type | Description |
|---|---|---|---|
string | (Optional) Background color. Accepts any CSS color value | ||
string | (Optional) Border color. Only takes effect when borderWidth > 0 | ||
number | (Optional) Border width (pixels). Takes effect when > 0 | ||
string | (Optional) Text color. Accepts any CSS color value | ||
'pointer' | 'default' | 'none' | 'move' | 'text' | (Optional) Cursor style when the mouse hovers | ||
string | (Optional) Override the display style | ||
number | '100%' | (Optional) Height ( pixels) or '100%' | ||
boolean | (Optional) Whether to hide (display: none), taking precedence over invisible | ||
boolean | (Optional) Whether to only hide visually (visibility: hidden), still occupying space | ||
number[] | (Optional) Margin (CSS shorthand), e.g. [top, right, bottom, left] or [vertical, horizontal] or [all] | ||
number[] | (Optional) Padding (CSS shorthand), e.g. [top, right, bottom, left] or [vertical, horizontal] or [all] | ||
number | (Optional) Rotation angle (degrees) | ||
number | '100%' | (Optional) Width ( pixels) or '100%' |