mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
23 lines
464 B
TypeScript
23 lines
464 B
TypeScript
import type { SvelteComponentTyped } from "svelte";
|
|
|
|
export type SectionLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
|
|
export interface SectionProps {
|
|
/**
|
|
* Specify the level the section should start at.
|
|
* @default 1
|
|
*/
|
|
level?: SectionLevel;
|
|
|
|
/**
|
|
* Specify the tag name
|
|
* @default "section"
|
|
*/
|
|
tag?: keyof HTMLElementTagNameMap;
|
|
}
|
|
|
|
export default class Section extends SvelteComponentTyped<
|
|
SectionProps,
|
|
Record<string, any>,
|
|
{ default: {} }
|
|
> {}
|