Proposal to add a new size variant xs (1 rem) for the Icon component’s font size (docs).
Observations:
Icon component defines variables for sizes {sm|md|lg} as class names (e.g., .pgn__icon__sm), but these class names are more of an implementation detail than something consumers should use directly.
[recommendation/proposal] Add support for a size prop on the Icon component and update Button to pass-through its size prop to Icon.
The use case along with this proposal could alternatively be solved with the Hyperlink component, rather than re-creating what Hyperlink does.
That said, this size prop for Icon also seems to be a welcome addition.
Icon component doesn’t yet have a standalone page in Figma.
Notes:
Seems like there is a future use case for size variant, “xs”, 1 rem
Use size prop to use these sizes and props in the future for things like button
Create an agenda for the session at the conference.
✅ Action items
Gabriel Weinberg Icon Button needs large, medium and small sizes in docsite and in Figma, GitHub issue for the docsite update, paragon ticket for the figma update