@oslokommune/punkt-elements
Version:
Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo
33 lines (32 loc) • 1.35 kB
TypeScript
import { PktInputElement } from '../../base-elements/input-element';
import { Ref } from 'lit/directives/ref.js';
import { PropertyValues } from 'lit';
import { ElementProps } from '../../types/typeUtils';
type Props = ElementProps<PktCheckbox, 'checkHelptext' | 'defaultChecked' | 'hasTile' | 'isSwitch' | 'labelPosition' | 'hideLabel' | 'tagText' | 'optionalTag' | 'optionalText' | 'requiredTag' | 'requiredText'>;
export declare class PktCheckbox extends PktInputElement<Props> {
inputRef: Ref<HTMLInputElement>;
value: string;
checkHelptext: string | null;
defaultChecked: boolean;
hasTile: boolean;
isSwitch: boolean;
labelPosition: 'right' | 'left';
hideLabel: boolean;
checked: boolean | string | null;
indeterminate: boolean | 'true' | 'false' | '';
type: string;
tagText: string | null;
optionalTag: boolean;
optionalText: string;
requiredTag: boolean;
requiredText: string;
connectedCallback(): void;
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
protected firstUpdated(_changedProperties: PropertyValues): void;
protected updated(changedProperties: PropertyValues): void;
render(): import('lit-html').TemplateResult<1>;
private handleClick;
private handleChange;
private toggleChecked;
}
export {};