> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/es/comandos-de-powershell/new-udtabs.md).

# New-UDTabs

### Sinopsis

Crea un nuevo conjunto de pestañas.

### Sintaxis

```powershell
New-UDTabs [-Tabs] <ScriptBlock> [[-Id] <String>] [-RenderOnActive] [[-Orientation] <String>] [[-Variant] <String>] [[-ScrollButtons] <String>] [-Centered] [[-ClassName] <String>] [[-SelectedTabIndex] <Int32>] [[-Style] <Hashtable>] [[-Sx] <Hashtable>] [<CommonParameters>]
```

### Descripción

Crea un nuevo conjunto de pestañas. Las pestañas se pueden usar para mostrar mucho contenido en una sola página.

### Parámetros

#### -Tabs

Las pestañas que se van a colocar dentro de este contenedor.

```
Required?                    true
Position?                    1
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Id

El ID del componente. Su valor predeterminado es un GUID aleatorio.

```
Required?                    false
Position?                    2
Default value                ([Guid]::NewGuid()).ToString()
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -RenderOnActive [<SwitchParameter>]
        Deprecated

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Orientation

La orientación de las pestañas. Los valores válidos son horizontal y vertical.

```
Required?                    false
Position?                    3
Default value                horizontal
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Variant

La variación de las pestañas. Los valores válidos son standard, fullWidth y scrollable.

```
Required?                    false
Position?                    4
Default value                standard
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -ScrollButtons

El comportamiento de los botones de desplazamiento. Los valores válidos son on, off, auto y desktop. On habilitará los botones de desplazamiento en cualquier caso. off deshabilitará todos los botones de desplazamiento. Auto mostrará los botones de desplazamiento cuando sea necesario. Desktop mostrará los botones de desplazamiento en pantallas medianas y grandes.

```
Required?                    false
Position?                    5
Default value                auto
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -Centered [<SwitchParameter>]
        Whether the tabs should be centered.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -ClassName

La clase CSS que se aplicará a las pestañas.

```
Required?                    false
Position?                    6
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -SelectedTabIndex

```
Required?                    false
Position?                    7
Default value                0
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Style

El estilo que se aplicará a las pestañas.

```
Required?                    false
Position?                    8
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Sx

Un estilo específico del tema que se aplicará a las pestañas.

```
Required?                    false
Position?                    9
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see
        about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
```

### Salidas

\-------------------------- EJEMPLO 1 --------------------------

```
PS >New-UDTabs -Tabs {
PS >     New-UDTab -Text "Tab1" -Id 'Tab1' -Content {
PS >         New-UDElement -Tag div -Id 'tab1Content' -Content { "Tab1Content"}
PS >     }
PS >     New-UDTab -Text "Tab2" -Id 'Tab2' -Content {
PS >         New-UDElement -Tag div -Id 'tab2Content' -Content { "Tab2Content"}
PS >     }
PS >     New-UDTab -Text "Tab3" -Id 'Tab3' -Content {
PS >         New-UDElement -Tag div -Id 'tab3Content' -Content { "Tab3Content"}
PS >     }
PS >  } -Id 'tabs1'

Basic Tabs|A basic set of tabs.




-------------------------- EXAMPLE 2 --------------------------

PS >New-UDTabs -Id 'tabs2' -Tabs {
PS >     New-UDTab -Text "Tab1" -Id 'DynamicTab1' -Dynamic -Content {
PS >         New-UDElement -Tag div -Id 'DynamicTab1Content' -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab2" -Id 'DynamicTab2' -Dynamic -Content {
PS >         New-UDElement -Tag div -Id 'DynamicTab2Content' -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab3" -Id 'DynamicTab3' -Dynamic -Content {
PS >         New-UDElement -Tag div -Id 'DynamicTab3Content' -Content { Get-Date }
PS >     }
PS >  }

Dynamic Tabs|A set of dynamic tabs.




-------------------------- EXAMPLE 3 --------------------------

PS >New-UDTabs -Id 'tabs3' -Orientation 'vertical' -Tabs {
PS >     New-UDTab -Text "Tab1" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab2" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab3" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS > }

Vertical Tabs|A set of vertical tabs.




-------------------------- EXAMPLE 4 --------------------------

PS >New-UDTabs -Id 'tabs4' -Variant 'fullWidth' -Tabs {
PS >     New-UDTab -Text "Tab1" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab2" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab3" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS > }

Full Width Tabs|A set of full width tabs.




-------------------------- EXAMPLE 5 --------------------------

PS >New-UDTabs -Id 'tabs5' -Variant 'scrollable' -Tabs {
PS >     New-UDTab -Text "Tab1" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab2" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab3" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS > }

Scrollable Tabs|A set of scrollable tabs.




-------------------------- EXAMPLE 6 --------------------------

PS >New-UDTabs -Id 'tabs6' -ScrollButtons 'on' -Tabs {
PS >     New-UDTab -Text "Tab1" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab2" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab3" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS > }

Scroll Buttons On|A set of tabs with scroll buttons always on.




-------------------------- EXAMPLE 7 --------------------------

PS >New-UDTabs -Id 'tabs7' -Centered -Tabs {
PS >     New-UDTab -Text "Tab1" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab2" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab3" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS > }

Centered Tabs|A set of centered tabs.




-------------------------- EXAMPLE 8 --------------------------

PS >New-UDTabs -Id 'tabs8' -Tabs {
PS >     New-UDTab -Text "Tab1" -Icon (New-UDIcon -Icon Eye) -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab2" -Icon (New-UDIcon -Icon Home) -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab3" -Icon (New-UDIcon -Icon User) -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS > }

Tabs with Icons|A set of tabs with icons.




-------------------------- EXAMPLE 9 --------------------------

PS >New-UDTabs -Id 'tabs7' -Tabs {
PS >     New-UDTab -Text "Tab1" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab2" -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS >     New-UDTab -Text "Tab3" -Disabled -Content {
PS >         New-UDElement -Tag div -Content { Get-Date }
PS >     }
PS > }

Disabled Tab|A set of tabs with a disabled tab.
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/es/comandos-de-powershell/new-udtabs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
