Skip to content

Commit 20e47d0

Browse files
committed
docs: fix references to SmuiElement in common readme
1 parent e850e72 commit 20e47d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/common/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ A fragment component (only contains a `<slot />`) used to define a Svelte contex
328328

329329
## classadder/ClassAdder.svelte
330330

331-
A base component that adds a class to an element. The ClassAdder is used to provide simple components. It usually uses the `Element` component shown above, but you can specify a different component for it to use.
331+
A base component that adds a class to an element. The ClassAdder is used to provide simple components. It usually uses the `SmuiElement` component shown above, but you can specify a different component for it to use.
332332

333333
### Props / Defaults
334334

335-
- `component`: `(depends on context)` - The component to extend. Usually it is set to `Element`.
336-
- `tag`: `(depends on context)` - The HTML tag name `Element` will use.
335+
- `component`: `(depends on context)` - The component to extend. Usually it is set to `SmuiElement`.
336+
- `tag`: `(depends on context)` - The HTML tag name `SmuiElement` will use.
337337
- `use`: `[]` - An array of Svelte actions and/or arrays of an action and its options.
338338
- `class`: `''` - A CSS class string.
339339

@@ -364,8 +364,8 @@ export default classAdderBuilder({
364364

365365
### Props / Defaults
366366

367-
- `component`: `Element` - An SMUI compatible component.
368-
- `tag`: `'div'` - An HTML tag name. (Only means anything for the `Element` component.)
367+
- `component`: `SmuiElement` - An SMUI compatible component.
368+
- `tag`: `'div'` - An HTML tag name. (Only means anything for the `SmuiElement` component.)
369369
- `class`: `''` - The class to add.
370370
- `classMap`: `{}` - A map of classes to contexts. The context should resolve to a Svelte store, and the class will be added if the Svelte store's value is true.
371371
- `contexts`: `{}` - A map of contexts to values to set for them.

0 commit comments

Comments
 (0)