Skip to content

Commit

Permalink
feat: style-related props of components
Browse files Browse the repository at this point in the history
  • Loading branch information
ourai committed Dec 6, 2022
1 parent a31b3e7 commit ce5b8c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- CSS 工具类(基于 [SUIT CSS utilities](https://github.com/suitcss/utils)
- Sass 变量、函数和混入(基于 [Trick](https://github.com/ourai/trick)

欢迎更加深入地了解 [Petals](https://oss.ourai.ws/petals/)。 ;-)
欢迎更加深入地了解 [Petals](https://petals.fxxk.design/)。 ;-)

## 用法

Expand Down
5 changes: 3 additions & 2 deletions packages/basic/src/typing/interfaces/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import { ClassName } from '../aliases';
interface IBaseComponent<
CtorType = string,
StyleType extends Record<string, any> = {}, // eslint-disable-line @typescript-eslint/ban-types
ThemeType extends string = string
ThemeType extends string = string,
> {
readonly tag: CtorType;
readonly className: ClassName;
readonly style: StyleType;
readonly style: Record<string, any>; // CSS variables
readonly nativeStyle: StyleType; // CSS rules
readonly theme: ThemeType;
}

Expand Down

0 comments on commit ce5b8c2

Please sign in to comment.