yarn add @twilio-paste/detail-text - or - yarn add @twilio-paste/core
import {DetailText} from '@twilio-paste/core/detail-text';
const Component = () => <DetailText>This is my detail text.</DetailText>;
as
The HTML tag to render the Detail Text as
- Type
any
- Default
'div'
element
Overrides the default element name to apply unique styles with the Customization Provider
- Type
any
- Default
'DETAIL_TEXT'
marginTop
The marginTop of the DetailText. Currently we only allow space0 to remove top margin.
- Type
"space0" | "space30"
- Default
'space30'
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.