[EmptyState] Support ref as prop and accept ReactNode for text
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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