mirror of https://github.com/astrit/css.gg.git
✏️ (styled-components): htmlattributes
This commit is contained in:
parent
2a0d040e58
commit
ee87bc8f01
|
|
@ -5,7 +5,7 @@ const {{ styledname }} = styled.i`
|
|||
{{{ css }}}
|
||||
`
|
||||
|
||||
export const {{ name }} = React.forwardRef<React.HtmlHTMLAttributes<HTMLElement>, HTMLElement>((props, ref) => {
|
||||
export const {{ name }} = React.forwardRef<HTMLElement, React.AllHTMLAttributes<HTMLElement>>((props, ref) => {
|
||||
return (
|
||||
<>
|
||||
<{{ styledname }} {...props} ref={ref} />
|
||||
|
|
|
|||
Loading…
Reference in New Issue