Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/components/hoc/styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ type Styler<Props> =
* const Dynamic = styled(Text)(theme => props => ({ color: props.color ?? theme.color }))
* const DynamicSansTheme = styled(Text)(_theme => props => ({ color: props.color }))
* ```
*
* @deprecated Use `cacheStyles` for styles, or if there really is a needed
* abstraction, create a new full component (but think about it atleast three
Copy link
Collaborator

@Jon-edge Jon-edge Sep 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More concise for new component barriers is if it: "helps readability" or "is reused at least once"

* times before you do).
*/
export function styled<BaseProps extends StyleProps>(
Component: React.ComponentType<BaseProps>
Expand Down
Loading