Skip to content

[Request] add a style representation to all prompts #345

@43081j

Description

@43081j

It could be useful to expose the styling (symbols and colours) of each prompt without having to expose actual rendering.

Something like this may be enough:

await text({
  message: 'whats up?',
  style: {
    label: picocolors.red,
    someSymbol: () => '#'
  }
});

although a super-variable object is making my deopt senses go off. but it is more useable than style: [{name: 'label', fn: picocolors.red}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions