form-control.d.ts 694 B

1234567891011121314151617181920
  1. import { TemplateResult } from 'lit';
  2. export declare const renderFormControl: (props: {
  3. inputId: string;
  4. size: 'small' | 'medium' | 'large';
  5. labelId?: string | undefined;
  6. label?: string | undefined;
  7. hasLabelSlot?: boolean | undefined;
  8. helpTextId?: string | undefined;
  9. helpText?: string | undefined;
  10. hasHelpTextSlot?: boolean | undefined;
  11. onLabelClick?: ((event: MouseEvent) => void) | undefined;
  12. }, input: TemplateResult) => TemplateResult<1>;
  13. export declare function getLabelledBy(props: {
  14. labelId: string;
  15. label: string;
  16. hasLabelSlot: boolean;
  17. helpTextId: string;
  18. helpText: string;
  19. hasHelpTextSlot: boolean;
  20. }): string | undefined;