Files
App/components/helpers/text.tsx
Violet Caulfield a2ee2be780 so does this work?
2024-11-23 12:05:28 -06:00

19 lines
513 B
TypeScript

import { H1, SizeTokens, Label as TamaguiLabel } from "tamagui"
interface LabelProps {
htmlFor: string,
children: string,
size: SizeTokens
}
export function Label(props: LabelProps): React.JSX.Element {
return (
<TamaguiLabel htmlFor={props.htmlFor} justifyContent="flex-end">{ props.children }</TamaguiLabel>
)
}
export function Heading({ children }: { children: string }): React.JSX.Element {
return (
<H1 marginVertical={30} fontWeight={900}>{ children }</H1>
)
}