callstack / callstack/react-native-paper

Subtitle: Why was the subtitle prop deprecated in Appbar.Content when MD3 explicitly supports subtitles in app bars?

Đang mở
#4,875 0 bình luận 3 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
TypeScript
Star
14.5k
Fork
2.2k
Merge trung bình
5 ngày 23 giờ
Pull request đã merge (30 ngày)
12

Mô tả

Image

The subtitle and subtitleStyle props on Appbar.Content are marked as deprecated in v5.x, yet the [[Material Design 3 specification for app bars]](https://m3.material.io/components/app-bars/specs) clearly shows subtitles as a supported and documented part of the component across all app bar sizes (small, medium, and large).
As seen in the MD3 spec, all center-aligned and expanding app bar variants include a Headline + Subtitle layout.

**A few questions:**
- What was the reasoning behind deprecating the subtitle prop in the v5 / MD3 theme update?
- Is there an officially recommended alternative for rendering a subtitle under the title in Appbar.Header?
- Are there any plans to reintroduce subtitle support, perhaps tied to the mode prop (e.g., only for medium or large modes where the spec shows it)?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.