import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type SpacingScale = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13; export type SpacingValue = SpacingScale | string; type $RestProps = SvelteHTMLElements["hr"]; type $Props = { /** * Specify the orientation of the divider. * @default "horizontal" */ orientation?: "horizontal" | "vertical"; /** * Set to `true` to render a decorative divider with no separator semantics * (no `role`, `aria-hidden="true"`) instead of `role="separator"`. * @default false */ decorative?: boolean; /** * Set the margin on the divider's own axis: block margin (`margin-block`) * when `orientation` is `"horizontal"`, inline margin (`margin-inline`) * when `"vertical"`. Numbers `1`–`13` use the shared spacing scale; * strings accept any CSS length. */ margin?: SpacingValue | undefined; [key: `data-${string}`]: unknown; }; export type DividerProps = Omit<$RestProps, keyof $Props> & $Props; export default class Divider extends SvelteComponentTyped, Record> {}