Skip to main content

Function: pillSizeDeclarations()

pillSizeDeclarations(size): string

Defined in: src/ui/styles/index.ts:34

CSS declarations giving a pill size (its least height, font size and padding), with text on one centred line.

Parameters​

size​

"pill-s" | "pill" | "pill-l" | "pill-xl" | "pill-xxl"

Returns​

string

Example​

pillSizeDeclarations("pill-s"); // "min-height: 24px; font-size: 14px; padding: 2px 8px; line-height: 1;"