---
name: draw_separator
kind: function
lang: go
domain: tui
version: "1.0.0"
purity: pure
signature: "func DrawSeparator(width int, style lipgloss.Style, sepChar string) string"
description: "Dibuja una linea separadora horizontal con ancho, estilo y caracter configurables. Por defecto usa el caracter de separacion simple (─)."
tags: [tui, separator, line, draw, lipgloss, divider, pendiente-usar]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: [github.com/charmbracelet/lipgloss]
params:
  - name: width
    desc: "ancho de la linea en caracteres"
  - name: style
    desc: "estilo lipgloss para el separador"
  - name: sepChar
    desc: "caracter de separacion; vacio usa BoxSep (─)"
output: "string con la linea separadora renderizada"
tested: false
tests: []
test_file_path: ""
file_path: "functions/tui/draw_separator.go"
source_repo: "https://gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/egutierrez/DevLauncher.git"
source_license: "MIT"
source_file: "launcher/ui/styles.go"
---

## Ejemplo

```go
dim := lipgloss.NewStyle().Foreground(lipgloss.Color("#6c6c6c"))
sep := tui.DrawSeparator(60, dim, "")
fmt.Println(sep)
// ────────────────────────────────────────────────────────────

// Con caracter custom
sep2 := tui.DrawSeparator(40, dim, "═")
```

## Notas

Si `sepChar` es vacio, usa `BoxSep` (─) de box_chars.go. Para lineas dobles usar "═", para puntos "·", etc.
