Caption kit will use light
color by default. Other available colors are:
default
lighter
success
error
link
These colors are not for standard usage. You can use the color prop to make fixes if colors are not appearing properly, but consult your UX team members if you are deciding to implement it
import React from 'react' import { Caption } from 'playbook-ui' const CaptionColors = (props) => { return ( <div> <Caption text="Test colors" /> <Caption color="success" text="Test colors" /> <Caption color="error" text="Test colors" /> <Caption color="link" text="Test colors" /> </div> ) } export default CaptionColors
If the text gets very long when using default or large size, use a different typography style.