mx.gob.hidalgo
1.1.8 • Public • Published
npm install --save mx.gob.hidalgo@latest
import React from 'react'
import MxGobHidalgo from 'mx.gob.hidalgo';
const conf = {
idApi: '',
apiKey: '',
TramServId: ''
};
const Example = () => {
return (
<MxGobHidalgo.secure.Acceder conf={conf}>
<div>
Hola Mundo
<MxGobHidalgo.secure.Logout
style={{
color: 'red'
}}
/>
</div>
</MxGobHidalgo.secure.Acceder>
);
}
Header Page Template
import React from 'react'
import {
Link
} from 'react-router-dom';
import MxGobHidalgo from 'mx.gob.hidalgo';
const Example = () => {
return (
<div>
<MxGobHidalgo.template.HeaderPage
ModelConstructor={{
secondnavbar: {
title: 'Title Page',
nav: [
<Link to="/subpage">Sub-Page</Link>,
<Link to="/subpage1">Sub-Page1</Link>,
<MxGobHidalgo.secure.Logout/>
]
},
contentheader: true,
images: [
"https://domain.com/images/bg.png"
]
}}
/>
</div>
);
}
mx.gob.hidalgo ©
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads