Skip to content

Gutter ​

Column of line numbers with optional terminal-style markers.

Gutter

Design lines ​

1
2
3
4
5
vue
1<Tabs defaultValue="tuix">2  <TabsList>3    <Tab value="tuix">TUIX</Tab>4    <Tab value="rubik">Rubik</Tab>5  </TabsList>6  <TabPanel value="tuix">7    <Gutter :lines="5" design="tuix" />8  </TabPanel>9  <TabPanel value="rubik">10    <Gutter :lines="5" design="rubik" />11  </TabPanel>12</Tabs>

Demo ​

Basic (items) ​

A 15-line gutter with markers on lines 3, 7 and 11.

1
2
>3
4
5
6
>7
8
9
10
>11
12
13
14
15
vue
1<Gutter :lines="15" :start="1" :highlight="[3, 7, 11]" />

Lines (lines) ​

The same gutter rendered with 5 and 10 lines.

1
2
3
4
5
1
2
3
4
5
6
7
8
9
10
vue
1<Gutter :lines="5" :start="1" />2<Gutter :lines="10" :start="1" />

Start (start) ​

Numbering that begins at 10 instead of 1.

10
11
12
13
14
vue
1<Gutter :lines="5" :start="10" />

Highlight (highlight) ​

highlight marks lines 2, 5 and 7 with the > marker.

1
>2
3
4
>5
6
>7
8
1
2
3
4
5
6
7
8
vue
1<Gutter :lines="8" :start="1" :highlight="[2, 5, 7]" />2<Gutter :lines="8" :start="1" />

Color (color) ​

The marker highlight in primary, success and danger colors.

1
>2
3
>4
5
1
>2
3
>4
5
1
>2
3
>4
5
vue
1<Gutter :lines="5" :start="1" :highlight="[2, 4]" color="primary" />2<Gutter :lines="5" :start="1" :highlight="[2, 4]" color="success" />3<Gutter :lines="5" :start="1" :highlight="[2, 4]" color="danger" />

Width (width) ​

The gutter column with a 4ch and a 5ch width.

1
2
3
4
5
100
101
102
103
104
vue
1<Gutter :lines="5" :start="1" width="4ch" />2<Gutter :lines="5" :start="100" width="5ch" />

Props ​

lines ​

Number of lines to display.

TypeDefaultRequired
number1❌

start ​

Starting number of the numbering.

TypeDefaultRequired
number1❌

highlight ​

Array of line numbers that receive the > marker.

TypeDefaultRequired
number[][]❌

color ​

Color of the highlighted line marker.

TypeDefaultRequired
'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark''primary'❌

width ​

Width of the gutter column.

TypeDefaultRequired
string'3ch'❌

design ​

Design line (or inherit from data-design).

TypeDefaultRequired
'tuix' | 'rubik'— (inherits from data-design)❌

CSS Custom Properties ​

TokenDefaultDescription
--font-mono"JetBrains Mono", ui-monospace, monospaceMonospace font stack for code-like content (key labels, log lines, chips).
--bg-panelfrom theme (--ctp-latte-surface1 / --ctp-mocha-surface1)Background of panel-like raised surfaces (cards, accordions).
--borderfrom theme (--ctp-latte-surface0 / --ctp-mocha-surface0)Outline and divider color for surfaces.
--text-mutedfrom theme (--ctp-latte-subtext1 / --ctp-mocha-subtext1)Secondary text for hints, annotations and disabled state.
--color-primaryfrom theme (--ctp-latte-mauve / --ctp-mocha-mauve)Primary semantic color (mauve in Catppuccin).
--color-secondaryfrom theme (--ctp-latte-lavender / --ctp-mocha-lavender)Secondary semantic color (lavender in Catppuccin).
--color-tertiaryfrom theme (--ctp-latte-blue / --ctp-mocha-blue)Tertiary semantic color (blue in Catppuccin).
--color-successfrom theme (--ctp-latte-green / --ctp-mocha-green)Success semantic color (green in Catppuccin).
--color-warningfrom theme (--ctp-latte-yellow / --ctp-mocha-yellow)Warning semantic color (yellow in Catppuccin).
--color-dangerfrom theme (--ctp-latte-red / --ctp-mocha-red)Danger semantic color (red in Catppuccin).
--color-lightfrom theme (--ctp-latte-surface1 / --ctp-mocha-rosewater)Light semantic color (lighter contrast tone).
--color-mediumfrom theme (--ctp-latte-overlay0 / --ctp-mocha-overlay2)Medium semantic color (mid-tone).
--color-darkfrom theme (--ctp-latte-text / --ctp-mocha-subtext1)Dark semantic color (high contrast text).

Ver Theming para la convención completa.