mx.gob.hidalgo

1.1.8 • Public • Published

mx.gob.hidalgo

Install

npm install --save mx.gob.hidalgo@latest

Acceder

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>
	);
}

License

mx.gob.hidalgo ©

Readme

Keywords

none

Package Sidebar

Install

npm i mx.gob.hidalgo

Weekly Downloads

24

Version

1.1.8

License

MIT

Unpacked Size

66.5 kB

Total Files

7

Last publish

Collaborators

  • eliasruizhzhgo