Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1023 Bytes

File metadata and controls

49 lines (32 loc) · 1023 Bytes
description
Chip component for Universal Apps.

Chip

Chips are compact elements that represent an input, attribute, or action.

Chips allow users to enter information, make selections, filter content, or trigger actions.

While included here as a standalone component, the most common use will be in some form of input, so some of the behavior demonstrated here is not shown in context.

Basic Chips

 New-UDChip -Label 'Basic'

Chips with Icons

New-UDChip -Label 'Basic' -Icon (New-UDIcon -Icon 'user')

OnClick

Shows a toast when the chip is clicked.

New-UDChip -Label 'OnClick' -OnClick {
    Show-UDToast -Message 'Hello!'
}

OnDelete

New-UDChip -Label 'OnDelete' -OnClick {
    Show-UDToast -Message 'Goodbye!'
}

API

New-UDChip