Skip to content
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
This repository was archived by the owner on Aug 27, 2026. It is now read-only.

FEATURE: Add concept of enum values to language core #28

Description

@grebaldi

Declaration:

export enum HeadlineVariant {
  REGULAR({
    className: "text-xl text-gray"
  })
  CTA({
    className: "text-xxl text-red"
  })
}

Usage:

export component Headline {
  variant: HeadlineVariant
  text: string

  return <h1 className={variant.className}>{text}</h1>
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions