mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Add autoWidth prop to Tabs
(#901)
* feat(tabs): support auto width tabs Closes #899 * docs(tabs): add auto width example
This commit is contained in:
parent
08402e54bf
commit
ea6757d020
6 changed files with 49 additions and 7 deletions
6
types/Tabs/Tabs.svelte.d.ts
vendored
6
types/Tabs/Tabs.svelte.d.ts
vendored
|
@ -15,6 +15,12 @@ export interface TabsProps
|
|||
*/
|
||||
type?: "default" | "container";
|
||||
|
||||
/**
|
||||
* Set to `true` for tabs to have an auto-width
|
||||
* @default false
|
||||
*/
|
||||
autoWidth?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the chevron icon
|
||||
* @default "Show menu options"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue