Button input component
tuiInputButton.RdA focusable button. When activated (Enter key), it increments input$id
and triggers a server update.
Usage
tuiInputButton(
label,
id,
color = NULL,
width = NULL,
height = NULL,
minHeight = NULL,
maxHeight = NULL,
widthPercent = NULL,
heightPercent = NULL
)Arguments
- label
A character string shown as the button label.
- id
A character string used as the input key (
input$<id>).- color
Optional button color. Supports named colors (
"default","black","red","green","yellow","blue","magenta","cyan","graylight","graydark","redlight","greenlight","yellowlight","bluelight","magentalight","cyanlight","white") or a hex string like"#RRGGBB".- width, height
Optional fixed width/height in terminal cells.
- minHeight, maxHeight
Optional min/max height in terminal cells.
- widthPercent, heightPercent
Optional relative size between
0and1.widthPercentis interpreted bytuiRow()andheightPercentbytuiColumn()for strict main-axis percentages.