mirror of
https://github.com/Jellify-Music/App.git
synced 2026-02-09 12:08:31 -06:00
19 lines
513 B
TypeScript
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>
|
|
)
|
|
} |