Skip to main content

Dot Text

How to use this component

import { DotText } from "@christian-caracach/react-text-decorator";

function MyComponent() {
return (
<DotText
text="This is a decorated text with dots."
color="error"
position="right"
/>
);
}

Props

PropTypeDescriptionValuesRequired
textstringThe text to be decoratedYES
colorstringThe color of the stripes["default","info", "error", "success", "warning"]NO
sizestringThe size of the text component["sm", "md", "lg" ]NO
positionstringThe decorator position["left", "right" ]NO
customClassNamestringCustom classname to add stylesNO