@termun/core - v0.0.0
    Preparing search index...

    Class StyleHover

    Index

    Constructors

    • Creates a new hover style with optional customization.

      Parameters

      • Optionalprefix: string

        Optional prefix string.

      • Optionalcolor: ColorName

        Optional chalk color name.

      • Optionalunderline: boolean

        Optional underline flag.

      • Optionalitalic: boolean

        Optional italic flag.

      Returns StyleHover

    Methods

    • Returns the prefix string displayed before the item label, or undefined to use the env default.

      Returns string | undefined

    • Sets the prefix string. Non-empty values are accepted; empty strings are ignored.

      Parameters

      • prefix: string | undefined

        Prefix to display before the label.

      Returns this

    • Returns the chalk color for this style, or undefined to use the terminal default.

      Returns ColorName | undefined

    • Sets the chalk color for this style.

      Parameters

      • color: ColorName | undefined

        Chalk color name, or undefined to use the terminal default.

      Returns this

    • Returns the underline flag, or undefined if not explicitly set.

      Returns boolean | undefined

    • Sets whether the text should be underlined.

      Parameters

      • underline: boolean | undefined

      Returns this

    • Returns the italic flag, or undefined if not explicitly set.

      Returns boolean | undefined

    • Sets whether the text should be italic.

      Parameters

      • italic: boolean | undefined

      Returns this

    Properties

    prefix?: string
    color?: ColorName
    underline?: boolean
    italic?: boolean