feat(grid)!: replace as with tag prop

This commit is contained in:
Eric Liu 2023-01-08 14:19:30 -08:00
commit 0752447667
4 changed files with 38 additions and 59 deletions

View file

@ -4584,11 +4584,11 @@
"filePath": "src/Grid/Grid.svelte",
"props": [
{
"name": "as",
"name": "tag",
"kind": "let",
"description": "Set to `true` to render a custom HTML element\nProps are destructured as `props` in the default slot (e.g., <Grid let:props><header {...props}>...</header></Grid>)",
"type": "boolean",
"value": "false",
"description": "Specify the element tag",
"type": "string",
"value": "\"div\"",
"isFunction": false,
"isFunctionDeclaration": false,
"isRequired": false,
@ -4681,13 +4681,7 @@
}
],
"moduleExports": [],
"slots": [
{
"name": "__default__",
"default": true,
"slot_props": "{ props: { class: string; [key: string]: any; } }"
}
],
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
"events": [],
"typedefs": [],
"rest_props": { "type": "Element", "name": "div" }