-
Thanks for the great library 👍 I understand that JSX pragma transforms sx props into className at runtime. This appears to be working well in my project, and it's quite an elegant approach I might add. Is there any way to bump the specificity of the generated As stands now /** @jsxImportSource theme-ui */
import { Button as VendorButton, ButtonProps } from "libraryIdontcontrol";
import { SxProp } from "@theme-ui/core";
import { ReactNode } from "react";
export interface MyButtonProps extends ButtonProps {
sx?: SxProp;
children?: ReactNode;
}
export function Button(props: MyButtonProps) {
return <VendorButton {...props} />;
} If I could increase specificity somehow via import styled from "@emotion/styled";
const StyledButton = styled(BPButton)`
&&& {
....more here
}
`;
export function Button(props: ButtonProps) {
return <StyledButton {...props} />;
} but it loses the simplicity of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Good news for you —
|
Beta Was this translation helpful? Give feedback.
Good news for you —
&&
still works.