formatRoundedStylesVar

Commons
stable

Build an array of CSS border-radius declarations from a 1- or 4-value shorthand array, using logical corner properties (border-start-start-radius, etc.).

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

values
required
Array<string>
1 value → all corners (border-radius shorthand), 4 values → start-start, start-end, end-start, end-end (CSS logical corners).

API

Return value

The value returned by this util.

Array of CSS declaration strings ready to be injected as inline style entries.

Usage

Examples

Ready-to-paste usage snippets.

Generate border-radius declarations

typescript