Primitives / foldkit-primitives/dom

cornerRadius

function · packages/primitives/src/dom/track-box.ts:30

function cornerRadius(value: string, width: number, height: number): number

The radius a box of width by height draws for a computed border-top-left-radius of value (8px, 50%, 8px 4px): its horizontal length in pixels, a share of the width for a percentage, and never more than half the shorter side, where the browser stops it.