UNPKG

@dvcol/neo-svelte

Version:

Neomorphic ui library for svelte 5

31 lines (30 loc) 796 B
import type { Snippet } from 'svelte'; import type { HTMLNeoBaseElement } from '../utils/html-element.utils.js'; import type { SizeInput } from '../utils/style.utils.js'; export type NeoFieldsetProps = { /** * The fieldset content. */ children?: Snippet; /** * Optional fieldset legend. */ legend?: string | Snippet; /** * Hide the fieldset border. */ borderless?: boolean; /** * Overrides the default flex value. */ flex?: CSSStyleDeclaration['flex']; /** * Optional width constraints. */ width?: SizeInput<'width'>; /** * Optional height constraints. */ height?: SizeInput<'height'>; legendProps?: HTMLNeoBaseElement<HTMLLegendElement>; } & HTMLNeoBaseElement<HTMLFieldSetElement>;