Skip to content

Commit e3455e9

Browse files
🐛 open ref type
1 parent eb5a1d6 commit e3455e9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/pages/docs/elements.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { HTMLAttributes } from "react"
22
import rc from "react-classmate"
33

4-
import { H3Headline, H4Headline, type HeadlineComponentProps } from "#components/common/Headline"
4+
import { H3Headline, H4Headline } from "#components/common/Headline"
55
import Notebox from "#components/common/Notebox"
66

77
export const Section = rc.extend(Notebox)`mb-8`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-classmate",
33
"description": "A react tool to separate class name logic, create variants and manage styles.",
4-
"version": "1.0.23",
4+
"version": "1.0.24",
55
"author": "https://github.com/richard-unterberg",
66
"homepage": "https://react-classmate.dev/",
77
"repository": {

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export type InputComponent =
3131
* @typeParam P - Props of the component.
3232
*/
3333
export interface RcBaseComponent<P>
34-
extends ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<HTMLElement>> {
34+
extends ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<any>> {
3535
__rcComputeClassName?: (props: P) => string
3636
__rcTag?: keyof React.JSX.IntrinsicElements | JSXElementConstructor<any>
3737
__rcStyles?: StyleDefinition<P> | ((props: P) => StyleDefinition<P>)

0 commit comments

Comments
 (0)