We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is currently how you'd work with Phrase and Text in a layout:
Phrase
Text
import { Phrase, SkeletonGroup, Text } from 'skeleton-kit'; <div> <SkeletonGroup showSkeletons={!isLoaded}> <Heading><Phrase>{data.title}</Phrase></Heading> <p><Text>{data.description}</Text></p> </SkeletonGroup> </div>
Maybe it would be easier to support a new as prop for this:
as
import { Phrase, SkeletonGroup, Text } from 'skeleton-kit'; <div> <SkeletonGroup showSkeletons={!isLoaded}> <Phrase as={Heading}>{data.title}</Phrase> <Text as="p">{data.description}</Text> </SkeletonGroup> </div>
The text was updated successfully, but these errors were encountered:
Non-goal: we don't need to go overboard and support a custom wrapper component with custom props.
Sorry, something went wrong.
No branches or pull requests
This is currently how you'd work with
Phrase
andText
in a layout:Maybe it would be easier to support a new
as
prop for this:The text was updated successfully, but these errors were encountered: