Skip to main content

include/spruce@block_Block.hrl

-record(block, {
    foreground :: gleam@option:option(spruce@style:color()),
    background :: gleam@option:option(spruce@style:color()),
    padding_top :: integer(),
    padding_right :: integer(),
    padding_bottom :: integer(),
    padding_left :: integer(),
    margin_top :: integer(),
    margin_right :: integer(),
    margin_bottom :: integer(),
    margin_left :: integer(),
    width :: gleam@option:option(integer()),
    height :: gleam@option:option(integer()),
    horizontal :: spruce@layout:pos(),
    vertical :: spruce@layout:pos(),
    border :: gleam@option:option(spruce@box:border()),
    border_top_color :: spruce@style:color(),
    border_right_color :: spruce@style:color(),
    border_bottom_color :: spruce@style:color(),
    border_left_color :: spruce@style:color(),
    border_top :: boolean(),
    border_right :: boolean(),
    border_bottom :: boolean(),
    border_left :: boolean()
}).