Created
October 4, 2021 21:34
-
-
Save omsharp/f87080efba759a9267af4a8f58d27f04 to your computer and use it in GitHub Desktop.
Revisions
-
omsharp created this gist
Oct 4, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ import { Text, TextProps } from '@chakra-ui/react'; //! A good example on how to extend chakra ui components export const ValidationErrorText: React.FC<TextProps> = ({ children, ...props }) => { return ( <Text fontSize="sm" color="red.500" {...props}> {children} </Text> ); };