UNPKG

@doku-dev/doku-fragment

Version:

A new Angular UI library that moving away from Bootstrap and built from scratch.

27 lines (26 loc) 1.27 kB
import { NgClass } from '@angular/common'; import * as i0 from "@angular/core"; export declare class DokuFieldPrefix { /** * The appearance of the prefix content. * - `inline`, use field padding - ideal for icon. * - `border-block`, has own padding and border as a separator - ideal for text like "IDR". * - `block`, the looks will be based on the provided content - ideal for component like Button. * - `border-block-inside`, looks like border block but no padding * and inside the wrapper border - ideal for select component. */ appearance: 'inline' | 'border-block' | 'block' | 'border-block-inside'; /** * Whether to use background color. Support is limited by appearance. * * Supported appearances: * - `border-block` * - `border-block-inside` */ useBackgroundColor: boolean; protected readonly classPrefix = true; protected get classAppearance(): NgClass['ngClass']; private getBackgroundClass; static ɵfac: i0.ɵɵFactoryDeclaration<DokuFieldPrefix, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<DokuFieldPrefix, "[doku-field-prefix]", ["dokuFieldPrefix"], { "appearance": "appearance"; "useBackgroundColor": "useBackgroundColor"; }, {}, never, never, true>; }