Skip to content

New crate: eggshell-ui-extras (reusable composites and third-party adapters) #134

Closed

Description

@samitbasu

Proposed by the user (2026-11-11): a third crate, eggshell-ui-extras, for reusable pieces that aren't core.

Rule of thumb for what goes where

  • Core (eggshell-ui): layout, input, overlays, the style contract, and the owned controls whose semantics the library must own (keyboard, focus, accessibility roles): button, toggle, segmented, select, slider, stepper, text field, progress, menus.
  • Extras (eggshell-ui-extras, imported as eggshell_ui_extras): composites that can be written on the public API alone (which also dogfoods it), and anything that brings a heavy third-party dependency, behind per-widget features.
  • eggshell-ui-shadcn: looks only.

Candidates

Open questions

  • Styling. Extras widgets need looks. Either they compose core style entries only, or extras gets its own style struct with defaults from core tokens, which the shadcn crate fills behind a feature. This needs deciding with the first extras widget.
  • Publishing. Same rule as the others: not before the shell runs and the user signs off.

Decided (user, 2026-11-15)

  • Name: eggshell-ui-extras (crates/eggshell-ui-extras, imported as eggshell_ui_extras), matching eggshell-ui / eggshell-ui-shadcn.
  • Per-widget features are off by default (opt in, e.g. markdown).
  • Styling: each extras widget owns its style struct (first: MarkdownStyle) with from_style(&Style) defaults from core tokens; eggshell-ui-shadcn fills it behind an optional extras feature. Extras never depends on shadcn.

Activity

  1. added
    enhancement
    post-0.1
    on Nov 11, 2026
  2. changed the title [-]New crate: eggshell-extras (reusable composites and third-party adapters)[/-] [+]New crate: eggshell-ui-extras (reusable composites and third-party adapters)[/+] on Nov 15, 2026
  3. added a commit that references this issue on Nov 16, 2026
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

    enhancementpost-0.1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions