diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index b74b6190..0f5ee035 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -431,22 +431,22 @@ import { Button } from "carbon-components-svelte"; ### Props -| Prop name | Type | Default value | Description | -| :--------------- | :----------------------------------------------------------------------------------------- | :------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| kind | "primary" | "secondary" | "tertiary" | "ghost" | "danger" | `"primary"` | Specify the kind of button. | -| size | "default" | "field" | "small" | `"default"` | Specify the size of button. | -| hasIconOnly | boolean | `false` | Set to `true` for the icon-only variant. | -| icon | typeof import("carbon-icons-svelte/lib/Add16").default | -- | Specify the icon from `carbon-icons-svelte` to render. | -| iconDescription | string | -- | Specify the ARIA label for the button icon. | -| tooltipAlignment | "start" | "center" | "end" | -- | Set the alignment of the tooltip relative to the icon. `hasIconOnly` must be set to `true`. | -| tooltipPosition | "top" | "right" | "bottom" | "left" | -- | Set the position of the tooltip relative to the icon. | -| as | boolean | `false` | Set to `true` to render a custom HTML element. Props are destructured as `props` in the default slot (e.g. <Button let:props><div {...props}>...</div></Button>). | -| skeleton | boolean | `false` | Set to `true` to display the skeleton state. | -| disabled | boolean | `false` | Set to `true` to disable the button. | -| href | string | -- | Set the `href` to use an anchor link. | -| tabindex | string | `"0"` | Specify the tabindex. | -| type | string | `"button"` | Specify the `type` attribute for the button element. | -| ref | null | HTMLAnchorElement | HTMLButtonElement | `null` | Obtain a reference to the HTML element. | +| Prop name | Type | Default value | Description | +| :--------------- | :---------------------------------------------------------------------------------------------------------------------------------------- | :------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| kind | "primary" | "secondary" | "tertiary" | "ghost" | "danger" | "danger-tertiary" | "danger-ghost" | `"primary"` | Specify the kind of button. | +| size | "default" | "field" | "small" | `"default"` | Specify the size of button. | +| hasIconOnly | boolean | `false` | Set to `true` for the icon-only variant. | +| icon | typeof import("carbon-icons-svelte/lib/Add16").default | -- | Specify the icon from `carbon-icons-svelte` to render. | +| iconDescription | string | -- | Specify the ARIA label for the button icon. | +| tooltipAlignment | "start" | "center" | "end" | -- | Set the alignment of the tooltip relative to the icon. `hasIconOnly` must be set to `true`. | +| tooltipPosition | "top" | "right" | "bottom" | "left" | -- | Set the position of the tooltip relative to the icon. | +| as | boolean | `false` | Set to `true` to render a custom HTML element. Props are destructured as `props` in the default slot (e.g. <Button let:props><div {...props}>...</div></Button>). | +| skeleton | boolean | `false` | Set to `true` to display the skeleton state. | +| disabled | boolean | `false` | Set to `true` to disable the button. | +| href | string | -- | Set the `href` to use an anchor link. | +| tabindex | string | `"0"` | Specify the tabindex. | +| type | string | `"button"` | Specify the `type` attribute for the button element. | +| ref | null | HTMLAnchorElement | HTMLButtonElement | `null` | Obtain a reference to the HTML element. | ### Slots diff --git a/docs/package.json b/docs/package.json index 2aff263e..cd9f139e 100644 --- a/docs/package.json +++ b/docs/package.json @@ -9,7 +9,6 @@ "build:svite": "svite build" }, "devDependencies": { - "@carbon/themes": "^10.20.0", "@sveltech/routify": "^1.9.9", "autoprefixer": "^10.0.1", "carbon-components": "^10.23.0", diff --git a/docs/src/App.svelte b/docs/src/App.svelte index bca03ac7..7a3274a0 100644 --- a/docs/src/App.svelte +++ b/docs/src/App.svelte @@ -4,13 +4,13 @@