New-UDChip
Synopsis
Chips are compact elements that represent an input, attribute, or action.
Syntax
New-UDChip [-Id <String>] [[-Label] <String>] [[-OnDelete] <Endpoint>] [[-OnClick] <Endpoint>] [[-Icon] <Object>] [[-Style] <Hashtable>] [[-Variant] <String>] [[-Size] <String>] [-ClassName <String>] [-Color <String>] [<CommonParameters>]
New-UDChip [-Id <String>] [[-Label] <String>] [[-OnDelete] <Endpoint>] [[-OnClick] <Endpoint>] [[-Style] <Hashtable>] [[-Variant] <String>] [[-Avatar] <String>] [[-AvatarType] <String>] [[-Size] <String>] [-ClassName <String>] [-Color <String>] [<CommonParameters>]Description
Chips are compact elements that represent an input, attribute, or action.
Parameters
-Id
The ID of the component. It defaults to a random GUID.
Required? false
Position? named
Default value ([Guid]::NewGuid()).ToString()
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Label
The label for the chip.
-OnDelete
A script block to call when the chip is deleted.
-OnClick
A script block to call when the chip is clicked.
-Icon
An icon to show within the chip.
-Style
CSS styles to apply to the chip.
-Variant
The theme variant to apply to the chip.
-Avatar
An avatar to show within the chip.
-AvatarType
The type of avatar to show in the chip.
-Size
The size of the chip. Valid values are: "small", "medium"
-ClassName
A CSS class to apply to the chip.
-Color
The color of the chip. Defaults to 'default'. Valid values: "default", "primary", "secondary"
Common parameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Outputs
Examples
Example 1: Basic chip
A basic chip with an icon.
Example 2: Outlined chip
An outlined chip with an icon.
Example 3: Clickable chip
A clickable chip with an icon.
Example 4: Deletable chip
A deletable chip with an icon.
Example 5: Clickable and deletable chip
A clickable and deletable chip with an icon.
Example 6: Avatar chip
A chip with an avatar.
Example 7: Image chip
A chip with an avatar image.
Example 8: Small chip
A small chip with an icon.
Example 9
Last updated
Was this helpful?