@peculiar/certificates-viewer-react
TypeScript icon, indicating that this package has built-in type declarations

4.3.1 • Public • Published

@peculiar/certificates-viewer-react

These are React specific building blocks on top of @peculiar/certificates-viewer components.

Using components

To get started with using components install the @peculiar/certificates-viewer-react package:

npm install @peculiar/certificates-viewer-react

Import the stylesheets from peculiar in your main app file:

import '@peculiar/certificates-viewer/dist/peculiar/peculiar.css';

Then you can use a components anywhere in your JSX.

import React from 'react';
import ReactDOM from 'react-dom';
import { PeculiarCertificateViewer } from '@peculiar/certificates-viewer-react';

ReactDOM.render(
  <PeculiarCertificateViewer
    certificate="MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAwTzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2VhcmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJuZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBYMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54rVygch77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+0TM8ukj13Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6UA5/TR5d8mUgjU+g4rk8Kb4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sWT8KOEUt+zwvo/7V3LvSye0rgTBIlDHCNAymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyHB5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ4Q7e2RCOFvu396j3x+UCB5iPNgiV5+I3lg02dZ77DnKxHZu8A/lJBdiB3QW0KtZB6awB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3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc="
  />,
  document.querySelector('#root'),
);

Customize the theme​

To customize the look and feel of the components, components have CSS variables you can override to provide a theme for your components. See the supported CSS variables in peculiar.scss file.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.10.1-alpha.210canary
4.3.160latest

Version History

VersionDownloads (Last 7 Days)Published
4.3.160
4.3.04
4.2.20
4.2.10
4.2.074
4.1.00
4.0.20
4.0.12
3.10.1-alpha.210
3.10.1-alpha.140
3.10.1-alpha.121
3.10.17
3.10.0166
3.9.00
3.8.00
3.7.00
3.6.00
3.5.00
3.4.00
3.3.10
3.3.00
3.2.10
3.2.01
3.1.00
3.0.50
3.0.40
3.0.30
3.0.20
3.0.11
3.0.00
2.0.2-alpha.00
2.0.10
2.0.00
0.3.27-alpha.00
0.3.260
0.3.250
0.3.240
0.3.230
0.3.220
0.3.21262
0.3.200
0.3.190
0.3.180
0.3.170
0.3.160
0.3.150
0.3.140
0.3.14-alpha.10
0.3.14-alpha.00
0.3.130
0.3.120
0.3.110
0.3.100
0.3.90
0.3.81
0.3.70
0.3.60
0.3.50
0.3.40
0.3.4-alpha.61
0.3.30
0.3.20
0.3.10
0.3.00
0.2.100
0.2.90
0.2.80
0.2.70
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i @peculiar/certificates-viewer-react

Homepage

x509.io/

Weekly Downloads

580

Version

4.3.1

License

MIT

Unpacked Size

39.8 kB

Total Files

14

Last publish

Collaborators

  • rmhrisk
  • microshine
  • yury.strozhevsky
  • peculiarventures
  • apilguk
  • donskov