Skip to content

Minor fixes on lines 71, 74, 94 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ export default withThemes({ light, dark }, light)(ThemableComponent)

#### `ThemeTypes`

`ThemeTypes` are used to define theme's property types. It's simillar to React `PropTypes`, there are 2 avaiable types:
`ThemeTypes` are used to define theme's property types. It's simillar to React `PropTypes`, there are 2 available types:

- `ThemeTypes.className`: Defines a property as a className
- `ThemeTypes.themeOf(ThemableComponent)`: Define a property as a theme of another themeable compoenent
- `ThemeTypes.themeOf(ThemableComponent)`: Define a property as a theme of another themeable component

##### Example:

Expand All @@ -91,7 +91,7 @@ MyComponent.themeTypes = {

### `Component.themes`

The compoenent will expose a `themes` object property with the themes defined as keys. These themes are set by the compoenent but also expose an API to create derivated themes.
The component will expose a `themes` object property with the themes defined as keys. These themes are set by the component but also expose an API to create derivated themes.

#### `add(fragment)`

Expand Down