@not-govuk/inset-text
TypeScript icon, indicating that this package has built-in type declarations

0.15.2 • Public • Published

Inset Text

A block of text that is inset.

Using this package

First install the package into your project:

npm install -S @not-govuk/inset-text

Then use it in your code as follows:

import React, { createElement as h } from 'react';
import InsetText from '@not-govuk/inset-text';

export const MyComponent = props => (
  <InsetText>
    It can take up to 8 weeks to register a lasting power of attorney if there are no mistakes in the application.
  </InsetText>
);

export default MyComponent;

Working on this package

Before working on this package you must install its dependencies using the following command:

pnpm install

Testing

npm test

Building

npm run build

Clean-up

npm run clean

/@not-govuk/inset-text/

    Package Sidebar

    Install

    npm i @not-govuk/inset-text

    Weekly Downloads

    466

    Version

    0.15.2

    License

    MIT

    Unpacked Size

    4.81 kB

    Total Files

    7

    Last publish

    Collaborators

    • daniel-ac-martin