You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows runtime code to detect whether a given property can be handled by the atoms function or not.
8
+
9
+
This is useful when building a Box component with atoms available at the top level (e.g. `<Box padding="small">`) since you'll need some way to filter atom props from non-atom props.
The atoms function also exposes a static `properties` key that lets you check whether a given property can be handled by the function.
480
+
481
+
```ts
482
+
atoms.properties.has('paddingX'); // returns true or false
483
+
```
484
+
485
+
> 💡 This is useful when building a Box component with atoms available at the top level (e.g. `<Box padding="small">`) since you’ll need some way to filter atom props from non-atom props.
0 commit comments