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
Copy file name to clipboardExpand all lines: packages/common/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -328,12 +328,12 @@ A fragment component (only contains a `<slot />`) used to define a Svelte contex
328
328
329
329
## classadder/ClassAdder.svelte
330
330
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.
332
332
333
333
### Props / Defaults
334
334
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.
337
337
-`use`: `[]` - An array of Svelte actions and/or arrays of an action and its options.
-`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.)
369
369
-`class`: `''` - The class to add.
370
370
-`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.
371
371
-`contexts`: `{}` - A map of contexts to values to set for them.
0 commit comments