Skip to content

Commit ec00647

Browse files
authored
Updated custom component
1 parent 65cefd5 commit ec00647

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/customize/customComponent.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## custom-component-headref
22
## Theme Your Custom Component
33

4-
To add support for themes to your component you need to make two simple minor changes to it.
4+
To add support for themes to your component you need to make two simple changes to it.
55
<br />
66

77
The main thing you need to change is to start using the style rules from the `props.style` property, instead of using the static variable defined alongside the component. You can define the default style of the component statically (the same way as before) but you shouldn’t use that property to get the actual style in runtime. This allows us to merge the default style with any theme style that may be active in the app, and provide the final style to components.

0 commit comments

Comments
 (0)