raystack / raystack/apsara

[EmptyState] Support ref as prop and accept ReactNode for text

Open
#615 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component triage
Dominant language
TypeScript
Stars
70
Forks
13
Avg merge
2d 5h
Merged PRs (30d)
8

Description

Summary

EmptyState is a custom component for displaying empty/placeholder states. Several improvements around CSS cleanup and flexibility.

Improvements

3. Accept ReactNode for text content

Text props should accept ReactNode instead of just string to allow rich content.

Moved to Cross-Cutting Issues

The following items have been moved to cross-cutting issues that address them across all components:

  • Replace hardcoded CSS values with design tokens (#672)
  • Forward HTML attributes (#674)
  • Clean up deprecated code (#682)

Files

  • packages/raystack/raystack/components/empty-state/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in packages/raystack/raystack/components/empty-state/ and inspect the EmptyState component and its prop definitions. Trace how the text props and ref are currently handled, then verify that ReactNode content and ref forwarding work as requested. Done means the component accepts rich text content and supports ref as a prop.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.