Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ag.common/help-reference

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ag.common/help-reference

`HelpReference` and `ArticleLink` are components that allow an application to reference export service help content from the page itself without opening a new tab and breaking a users' flow.

  • 1.0.1
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

@ag.common/help-reference

HelpReference and ArticleLink are components that allow an application to reference export service help content from the page itself without opening a new tab and breaking a users' flow.

Installation

yarn add @ag.common/help-reference

Basic usage

import { PageContent } from '@ag.ds-next/react/content';
import { HelpReference } from '@ag.common/help-reference';

function Page() {
	return (
		<PageContent>
			<YourPageContent />
			<HelpReference reference="your-reference" />
		</PageContent>
	);
}

You may reference an article in-app directly using an ArticleLink without needing to set up any reference content

import { Text } from '@ag.ds-next/react/text';
import { PageContent } from '@ag.ds-next/react/content';
import { ArticleLink } from '@ag.common/help-reference';

function Page() {
	return (
		<PageContent>
			<YourPageContent />
			<Text as="p">
				You can place an ArticleLink anywhere in your page and have it{' '}
				<ArticleLink article="your-article">reference</ArticleLink> a help
				article
			</Text>
		</PageContent>
	);
}

FAQs

Package last updated on 06 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc