Main module for elm-neat-layout.
A bounded View without gap.
Convert to/from View by setGap/setBoundary.
A primitive type that represents that there is no Gap
For custom gaps, see Custom gaps.
Render the View into Html so that it spreads across the screen.
Settings for rendering View.
Set the base size in rem.
Represents the font-size of the root element (typically <html>).
All gap sizes are determined relative to this value.
Apply a modifier only when a condition is met.
Apply a modifier unless a condition is met.
Apply a modifier only if the given value is Just.
You can use custom gaps just by declaring new types and IsGap values for them.
import Neat exposing (IsGap)
type ButtonGroup
= ButtonGroup Never
buttonGroup : IsGap ButtonGroup
buttonGroup =
IsGap
{ horizontal = 0.6
, vertical = 0.6
}Information about your custom gaps.
e.g., If the base size is 2rem, IsGap { horizontal = 1.2, vertical = 2 } becomes gap with "2.4rem" horizontally and "4rem" vertically.
A gap-sensible
Html msgalternative.