diff --git a/fixtures/Button.mist.css.tsx b/fixtures/Button.mist.css.tsx index f78ba80..29ec47f 100644 --- a/fixtures/Button.mist.css.tsx +++ b/fixtures/Button.mist.css.tsx @@ -5,7 +5,7 @@ type Props = { children?: React.ReactNode size?: 'lg' | 'sm' danger?: boolean -} +} & JSX.IntrinsicElements['button'] export function Button({ children, size, danger, ...props }: Props) { return ( diff --git a/src/index.ts b/src/index.ts index c9039ad..4b6e39b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -82,7 +82,7 @@ import './${name}.mist.css' type Props = { children?: React.ReactNode ${renderProps(parsedInput)} -} +} & JSX.IntrinsicElements['${parsedInput.tag}'] export function ${name}({ children, ${Object.keys(parsedInput.data).join( ', ',