README.md

# wink

[![Package Version](https://img.shields.io/hexpm/v/wink)](https://hex.pm/packages/wink)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/wink/)

```sh
gleam add wink
```

```gleam
import gleam/io
import wink

pub fn main() {
    // draws a box with the default configuration
    "(>ᴗ•)"
    |> wink.draw
    |> io.println
}
```

will output:

```

 ╭───────╮ 
 │       │ 
 │ (>ᴗ•) │ 
 │       │ 
 ╰───────╯ 

```

```gleam
import gleam/io
import wink.{Border, Config, Custom}

pub fn main() {
    // or you can initialize a custom-styled box with specific config
    let box =
      wink.init(
        Config(
          ..wink.default_config,
          style: Custom(Border(
            top_right: "◝",
            top_left: "◜",
            bottom_right: "◞",
            bottom_left: "◟",
            horizontal: "―",
            vertical: "⸾",
          )),
        ),
      )

    "(>ᴗ•)"
    |> box.draw
    |> io.println
}
```

wink.default_config =

```gleam
Config(
  padding: Spacing(top: 1, right: 1, bottom: 1, left: 1),
  margin: Spacing(top: 1, right: 1, bottom: 1, left: 1),
  style: Round,
  box_color: Default,
  text_color: Default,
  decorations: [],
)
```

Further documentation can be found at <https://hexdocs.pm/wink>.

## Development

```sh
gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell
```