master @ 13 LINES
[ HISTORY ] [ UP ]
┌─ TS ───────────────────────────────────────────────────────────────────────┐
│ export interface Props { │
│ name: string; │
│ value?: number; │
│ min?: number; │
│ max?: number; │
│ step?: number; │
│ /** Digit cells for the input. */ │
│ cells?: number; │
│ } │
│ │
│ // "[ - ] " + cells + " [ + ]" │
│ export const stepperWidth = (cells = 4) => 12 + cells; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ TS ─────────────────────────────────┐
│ export interface Props { │
│ name: string; │
│ value?: number; │
│ min?: number; │
│ max?: number; │
│ step?: number; │
│ /** Digit cells for the input. */ │
│ cells?: number; │
│ } │
│ │
│ // "[ - ] " + cells + " [ + ]" │
│ export const stepperWidth = (cells = 4) => 1 │
│ 2 + cells; │
└──────────────────────────────────────────────┘
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET