fix(form-group): add legendId

Ref: 4fc56c30b
This commit is contained in:
Eric Y Liu 2021-07-09 11:25:48 -07:00
commit e8a826efa5
4 changed files with 45 additions and 21 deletions

View file

@ -3,6 +3,12 @@ import { SvelteComponentTyped } from "svelte";
export interface FormGroupProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["fieldset"]> {
/**
* Set to `true` for to remove the bottom margin
* @default false
*/
noMargin?: boolean;
/**
* Set to `true` to indicate an invalid state
* @default false
@ -15,12 +21,6 @@ export interface FormGroupProps
*/
message?: boolean;
/**
* Set to `true` for to remove the bottom margin
* @default false
*/
noMargin?: boolean;
/**
* Specify the message text
* @default ""
@ -32,6 +32,12 @@ export interface FormGroupProps
* @default ""
*/
legendText?: string;
/**
* Specify an id for the legend element
* @default ''
*/
legendId?: string;
}
export default class FormGroup extends SvelteComponentTyped<