Socket
Socket
Sign inDemoInstall

rc-footer

Package Overview
Dependencies
8
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rc-footer

Pretty Footer react component used in ant.design


Version published
Maintainers
1
Install size
285 kB
Created

Readme

Source

NPM version npm download dumi build status Codecov Dependencies DevDependencies bundle size

Pretty Footer react component used in ant.design and antv.vision.

Live Demo

https://react-component.github.io/footer/

Install

rc-footer

Usage

import Footer from 'rc-footer';
import 'rc-footer/assets/index.css'; // import 'rc-footer/asssets/index.less';
import { render } from 'react-dom';

render(
  <Footer
    columns={[
      {
        icon: (
          <img src="https://gw.alipayobjects.com/zos/rmsportal/XuVpGqBFxXplzvLjJBZB.svg" />
        ),
        title: '语雀',
        url: 'https://yuque.com',
        description: '知识创作与分享工具',
        openExternal: true,
      },
    ]}
    bottom="Made with ❤️ by AFX"
  />,
  mountNode,
);

API

PropertyTypeDefaultDescription
prefixClsstringrc-footer
classNamestring''additional class name of footer
styleReact.CSSPropertiesstyle properties of footer
columnsColumn Array[]columns data inside footer
bottomReactNodeextra bottom area beneath footer columns
theme'light' | 'dark''dark'preset theme of footer
backgroundColorstring'#000'background color of footer
columnLayout'space-around' | 'space-between''space-around'justify-content value of columns element
maxColumnsPerRownumber-max count of columns for each row

Column

PropertyTypeDefaultDescription
iconReactNodeicon that before column title
titleReactNodetitle of column
itemsItem Array[]items data inside each column
classNamestring''additional class name of footer
styleReact.CSSPropertiesstyle properties of footer

Column Item

PropertyTypeDefaultDescription
iconReactNodeicon that before column title
titleReactNodetitle of column
descriptionReactNodedescription of column, come after title
urlstringlink url of item title
openExternalbooleanfalselink target would be _blank if openExternal is ture
classNamestring''additional class name of footer
styleReact.CSSPropertiesstyle properties of footer
LinkComponentReact.ReactType'a'the link element to render item

Development

npm install
npm start

License

rc-footer is released under the MIT license.

Keywords

FAQs

Last updated on 04 Jan 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc