CodeTextFieldDefaults

Contains default values used by CodeTextField.

Properties

Link copied to clipboard

The corner radius of one cell (COUI couiRoundCornerS / coui_code_input_cell_radius).

Link copied to clipboard
val CellCount: Int = 6

The default number of cells (COUICodeInputView CELL_COUNT / couiCodeInputCount).

Link copied to clipboard

The size of one cell (COUI coui_code_input_cell_width x coui_code_input_cell_height).

Link copied to clipboard

The stroke width of the active-cell highlight (COUI coui_code_input_cell_stroke_width).

Link copied to clipboard

The width of the blinking cursor (COUI coui_text_cursor_width).

Link copied to clipboard

The maximum gap between adjacent cells (2 x COUI coui_code_input_cell_max_margin_horizontal).

Link copied to clipboard

The minimum gap between adjacent cells (2 x COUI coui_code_input_cell_min_margin_horizontal).

Link copied to clipboard

The reference width below which cells scale down (COUICodeInputView DEFAULT_SCREEN_WIDTH_DP).

Link copied to clipboard

The radius of the dot shown in security mode (COUI coui_code_input_cell_security_circle_radius).

Functions

Link copied to clipboard
fun codeTextFieldColors(cellBackgroundColor: Color = COUITheme.colorScheme.surfaceContainer, textColor: Color = COUITheme.colorScheme.onSurface, focusedStrokeColor: Color = COUITheme.colorScheme.primary, securityCircleColor: Color = COUITheme.colorScheme.onSurface.copy(alpha = 0.847f), cursorColor: Color = COUITheme.colorScheme.primary): CodeTextFieldColors

Default colors used by the CodeTextField.

Link copied to clipboard

The default text style of a cell digit (COUI coui_code_input_cell_text_size).