Skip to content

Commit

Permalink
fix: include children prop in ruleProps (#918)
Browse files Browse the repository at this point in the history
This allows style rules to be conditionally applied based on (for example) the presence or absence of any children passed to the component.
  • Loading branch information
1000hz committed Apr 17, 2024
1 parent f4d3966 commit e22ecf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/fela-bindings/src/createComponentFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default function createComponentFactory(
theme: _felaTheme,
as,
id,
children,
}

// if the component renders into another Fela component
Expand Down

0 comments on commit e22ecf1

Please sign in to comment.