Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Alert component follow-up #1077

@bmdalex

Description

@bmdalex

Alert component follow-up

Alert component was created in #1063 there are a few things we need to follow up on:

interface AlertPropsV2 extends AlertProps {
  /** The title of the alert **/
  header?: string

  /** An alert may be formatted to display an error or negative message. */
  error?: boolean
  negative?: boolean // EXPERIMENTAL - not sure we will add both

  /** An alert may be formatted to display a positive message. */
  positive?: boolean // EXPERIMENTAL - synonym for success  not sure we will add it
  
  /** Defines whether Alert is displayed. */
  open?: boolean

  /** Event for request to change 'open' value. */
  onOpenChange?: ComponentEventHandler<PopupProps>

  /** EXPERIMENTAL - some Alerts might need different style for all types/intents */
  appearance?: 'basic' | 'card'
}

Metadata

Metadata

Assignees

Labels

vstsPaired with ticket in vsts⚙️ enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions