Skip to content

Commit 29be2c1

Browse files
committed
docs: remove mention of $$restProps
- When describing the `divAttributes` pass-through prop
1 parent 235f95f commit 29be2c1

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,14 @@ There are a few ways to override its styles:
210210
211211
### `<Cartesian>` props (Svelte 4)
212212
213-
| prop | type | description |
214-
| ----------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
215-
| `Component` | `ComponentType` | **Required**: A Svelte component. |
216-
| `props` | `Record<string, any[]>` | **Required**: An object containing prop names and an array of potential values. |
217-
| `asChild` | `?boolean=false` | Renders the default slot's contents. Each Cartesian's iteration will pass `innerProps` as slot props. Default value `false`. |
218-
| `unstyled` | `?boolean=false` | Disable built-in CSS. |
219-
| `divAttributes` | `?SvelteHTMLElements["div"]={}` | Any additional props will be spread onto the wrapping `<div>` element as attributes via `$$restProps`. |
220-
| `let:innerProps` | `Record<string, any>` | Provides a single combination of props at every iteration. Use this alongside `asChild` to spread `innerProps` to your nested component. |
213+
| prop | type | description |
214+
| ---------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
215+
| `Component` | `ComponentType` | **Required**: A Svelte component. |
216+
| `props` | `Record<string, any[]>` | **Required**: An object containing prop names and an array of potential values. |
217+
| `asChild` | `?boolean=false` | Renders the default slot's contents. Each Cartesian's iteration will pass `innerProps` as slot props. Default value `false`. |
218+
| `unstyled` | `?boolean=false` | Disable built-in CSS. |
219+
| `divAttributes` | `?SvelteHTMLElements["div"]={}` | Attributes to be spread onto the wrapping `<div>` element. |
220+
| `let:innerProps` | `Record<string, any>` | Provides a single combination of props at every iteration. Use this alongside `asChild` to spread `innerProps` to your nested component. |
221221
222222
### Examples (Svelte 4)
223223
@@ -268,12 +268,12 @@ Styling `<CartesianWithRunes>` is done in the exact same way as with [`<Cartesia
268268
269269
### `<CartesianWithRunes>` props (Svelte 5)
270270
271-
| prop | type | description |
272-
| ----------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
273-
| `Component` | `ComponentType` | **Required**: A Svelte component. |
274-
| `props` | `Record<string, any[]>` | **Required**: An object containing prop names and an array of potential values. |
275-
| `unstyled` | `?boolean=false` | Disable built-in CSS. |
276-
| `divAttributes` | `?SvelteHTMLElements["div"]={}` | Any additional props will be spread onto the wrapping `<div>` element as attributes via `$$restProps`. |
271+
| prop | type | description |
272+
| --------------- | ------------------------------- | ------------------------------------------------------------------------------- |
273+
| `Component` | `ComponentType` | **Required**: A Svelte component. |
274+
| `props` | `Record<string, any[]>` | **Required**: An object containing prop names and an array of potential values. |
275+
| `unstyled` | `?boolean=false` | Disable built-in CSS. |
276+
| `divAttributes` | `?SvelteHTMLElements["div"]={}` | Attributes to be spread onto the wrapping `<div>` element. |
277277
278278
## Project roadmap
279279

0 commit comments

Comments
 (0)