diff --git a/.changeset/polymorphic-as-types.md b/.changeset/polymorphic-as-types.md new file mode 100644 index 000000000..4f1c84bd9 --- /dev/null +++ b/.changeset/polymorphic-as-types.md @@ -0,0 +1,5 @@ +--- +"@linaria/react": patch +--- + +Add typing for intrinsic props selected through the polymorphic `as` prop on styled components. diff --git a/packages/react/__dtslint__/styled-jsx.tsx b/packages/react/__dtslint__/styled-jsx.tsx new file mode 100644 index 000000000..2662c71d8 --- /dev/null +++ b/packages/react/__dtslint__/styled-jsx.tsx @@ -0,0 +1,9 @@ +import * as React from 'react'; + +import { styled } from '..'; + +const Button = styled.button``; + +