import { styled } from "goober"; import React from "react"; interface TextProps extends React.HTMLAttributes { muted?: boolean; strong?: boolean; small?: boolean; inline?: boolean; mono?: boolean; } const BaseText = React.forwardRef( ({ muted, strong, small, inline, mono, ...rest }, ref) => (
), ); const StyledText = styled(BaseText)` ${(props) => props.muted && ` color: var(--j-neutral-500); `} ${(props) => props.strong && ` font-weight: 500; color: var(--j-text-color-strong); `} ${(props) => props.small && ` font-size: 0.875rem; `} ${(props) => props.inline && ` display: inline; `} ${(props) => props.mono && ` font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; `} `; export function Text( props: React.PropsWithChildren<{ className?: string; muted?: boolean; strong?: boolean; inline?: boolean; small?: boolean; mono?: boolean; style?: React.CSSProperties; }>, ) { return ; }