Type utilities used by component packages of @hdoc-react/components
npm install @hdoc-react/type-utils
import type { Simplify } from "@hdoc-react/type-utils";
type MyType = {
a: number;
b: string;
};
type AnotherType = {
c: boolean;
d: number;
};
type FlattenedType = Simplify<MyType & AnotherType>;
-
Simplify
- Use to flatten the type output to improve type hints shown in editors.
These are common props
that can be used in any
component.
-
Color
- Color variants -
Size
- Size variants