yarn add @twilio-paste/screen-reader-only - or - yarn add @twilio-paste/core
import {ScreenReaderOnly} from '@twilio-paste/core/screen-reader-only';
const Component = () => (
<Button variant="secondary" size="small">
Buy <ScreenReaderOnly>+1 (484) 662-4088</ScreenReaderOnly>
</Button>
);
as
A custom HTML tag to use instead of the default span
tag
- Type
any
- Default
span
id
- Type
string
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.