tuil
ReferencePackages@mwillbanks/tuil-inkAPI

AlertProps

interface exported by @mwillbanks/tuil-ink.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-ink.

export interface AlertProps
  extends PropsWithChildren<CommonComponentProps>,
    SlottedComponentProps<
      {
        root: BoxProps;
        icon: TextProps;
        title: TextProps;
        content: TextProps;
      },
      { readonly tone: "info" | "success" | "warning" | "danger" }
    > {
  readonly tone?: "info" | "success" | "warning" | "danger";
  readonly title?: string;
}

Members

MemberTypeRequiredDescriptionRelated types
tone"info" | "success" | "warning" | "danger" | undefinedNoThe tone member uses the "info" | "success" | "warning" | "danger" | undefined contract.
titlestring | undefinedNoThe title member uses the string | undefined contract.
variantstring | undefinedNoThe variant member uses the string | undefined contract.
size"sm" | "md" | "lg" | undefinedNoThe size member uses the "sm" | "md" | "lg" | undefined contract.
unstyledboolean | undefinedNoThe unstyled member uses the boolean | undefined contract.
classNamestring | undefinedNoThe className member uses the string | undefined contract.
layoutPartial<Omit<LayoutNodeInput, "children" | "id" | "semantics">> | undefinedNoThe layout member uses the Partial<Omit<LayoutNodeInput, "children" | "id" | "semantics">> | undefined contract.
idstring | undefinedNoThe id member uses the string | undefined contract.
testIdstring | undefinedNoThe testId member uses the string | undefined contract.
roleSemanticRole | undefinedNoThe role member uses the SemanticRole | undefined contract.SemanticRole
labelstring | undefinedNoThe label member uses the string | undefined contract.
descriptionstring | undefinedNoThe description member uses the string | undefined contract.
disabledboolean | undefinedNoThe disabled member uses the boolean | undefined contract.
readOnlyboolean | undefinedNoThe readOnly member uses the boolean | undefined contract.
selectedboolean | undefinedNoThe selected member uses the boolean | undefined contract.
checkedboolean | undefinedNoThe checked member uses the boolean | undefined contract.
expandedboolean | undefinedNoThe expanded member uses the boolean | undefined contract.
valueTextstring | undefinedNoThe valueText member uses the string | undefined contract.
childrenReactNodeNoThe children member uses the ReactNode contract.
slotsPartial<SlotComponents<&#123; root: import("@mwillbanks/tuil-ink").BoxProps; icon: import("@mwillbanks/tuil-ink").TextProps; title: import("@mwillbanks/tuil-ink").TextProps; content: import("@mwillbanks/tuil-ink").TextProps; &#125;>> | undefinedNoThe slots member uses the Partial<SlotComponents<&#123; root: import("@mwillbanks/tuil-ink").BoxProps; icon: import("@mwillbanks/tuil-ink").TextProps; title: import("@mwillbanks/tuil-ink").TextProps; content: import("@mwillbanks/tuil-ink").TextProps; &#125;>> | undefined contract.BoxProps, SlotComponents, TextProps
slotPropsPartial<SlotProps<&#123; root: import("@mwillbanks/tuil-ink").BoxProps; icon: import("@mwillbanks/tuil-ink").TextProps; title: import("@mwillbanks/tuil-ink").TextProps; content: import("@mwillbanks/tuil-ink").TextProps; &#125;, &#123; readonly tone: "info" | "success" | "warning" | "danger"; &#125;>> | undefinedNoThe slotProps member uses the Partial<SlotProps<&#123; root: import("@mwillbanks/tuil-ink").BoxProps; icon: import("@mwillbanks/tuil-ink").TextProps; title: import("@mwillbanks/tuil-ink").TextProps; content: import("@mwillbanks/tuil-ink").TextProps; &#125;, &#123; readonly tone: "info" | "success" | "warning" | "danger"; &#125;>> | undefined contract.BoxProps, SlotProps, TextProps

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-ink

On this page