diff --git a/src/index.tsx b/src/index.tsx index 1b4982d..20883cd 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -45,9 +45,16 @@ function handle(Tag: K, tagParams: TagParams, d classNames.push($(eachNewTagParam[0], ...newParams)); } + + const newProps: Record = {}; + for (const key in props) { + if (!key.startsWith('$')) { + newProps[key] = props[key]; + } + } //@ts-ignore - return ; + return ; }) as MasterExoticComponent; component.displayName = displayName;