We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc7c8a9 commit f63cbe5Copy full SHA for f63cbe5
src/types.tsx
@@ -1,3 +1,5 @@
1
+import React from 'react';
2
+
3
export type Color = string;
4
5
export type Sizes = 'sm' | 'md' | 'lg';
@@ -8,6 +10,14 @@ export type Direction = 'up' | 'down' | 'left' | 'right';
8
10
9
11
export type DimensionValue = undefined | number | string;
12
13
+export type CommonStyledProps = {
14
+ /**
15
+ * "as" polymorphic prop allows to render a different HTML element or React component
16
+ * @see {@link https://styled-components.com/docs/api#as-polymorphic-prop}
17
+ */
18
+ as?: string | React.ComponentType<any>; // eslint-disable-line @typescript-eslint/no-explicit-any
19
+};
20
21
export type CommonThemeProps = {
22
// TODO: Rename to base `disabled`
23
isDisabled?: boolean;
0 commit comments