New NotionToggleBlock - fasteiner/Notion GitHub Wiki

New-NotionToggleBlock

SYNOPSIS

Creates a new Notion toggle block object.

SYNTAX

None (Default)

New-NotionToggleBlock [<CommonParameters>]

WithText

New-NotionToggleBlock -RichText <Object[]> [-Color <Object>] 
 [<CommonParameters>]

DESCRIPTION

This function creates a new instance of the notion_toggle_block class. You can create an empty toggle block, or provide rich text and an optional color.

EXAMPLES

EXAMPLE 1

New-NotionToggleBlock

EXAMPLE 2

New-NotionToggleBlock -RichText "Details"

EXAMPLE 3

New-NotionToggleBlock -RichText "Details" -Color "gray"

PARAMETERS

-Color

The color for the toggle block. Default is "default".

Type: Object
Parameter Sets: WithText
Aliases:

Required: False
Position: Named
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False

-RichText

The rich text content for the toggle block.

Type: Object[]
Parameter Sets: WithText
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

notion_toggle_block

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️