Skip to main content

Translate

The translate attribute specifies whether the content of an element should be translated or not.

Usage​

import React from 'react';
import { Translate } from 'qdm-component-library';

function App() {
return (
<Translate options={[
{
value: 'tamil',
label: 'Tamil'
}
]} />
);
}
export default App;

Reference​

Props​

className​

props for providing classname to Translate component string

id​

props for providing id to Translate component string

name​

props for providing name to Translate component string

variant​

The variant to use outlined string

backgroundColor​

props for providing backgroundColor for Translate string

Icon​

The Icon to use string

options​

props for providing options for sent to Translate Component object

oversize​

The oversize to use Translate coverd string

inLineStyles​

props give addition props to the Translate Component type Object