Method BreakpointPx
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
BreakpointPx(StyleVariantKind)
Min-width (px) at which a responsive variant activates. The default breakpoints: sm 640, md 768, lg 1024, xl 1280, 2xl 1536. Returns 0 for every other named kind, and throws for a value that names no kind — a cast outside the enum's range is a caller error, and a silent 0 is how one survives to produce a wrong layout instead of a stack trace.
public static float BreakpointPx(StyleVariantKind kind)
Parameters
kindStyleVariantKind
Returns
- float