@algolia/ui-library
TypeScript icon, indicating that this package has built-in type declarations

9.16.1 • Public • Published

Algolia UI library

Build Status

A set of shareable, reusable UI components for Algolia interfaces, built in React. Complete list available here: https://algolia-ui-library.netlify.com/.

Migration guide from V2 to V3

Please read the detailed Migration guide for more details.

Purpose

The goal of this library is to provide a set of React UI components that can be easily integrated into any Algolia project.

The design of these components is identical to the design found on algolia.com. The styles are using Algolia's custom version of Fragments.js.

Usage

  1. Run one of the following commands in your project, depending on your package manager:
npm install @algolia/ui-library --save

yarn add @algolia/ui-library
  1. Use the UI components like this:
import React from 'react';
import { Button, Text } from '@algolia/ui-library';

const MyComponent = () => (
  <div>
    <Text>This is some text</Text>
    <Button>This is a button</Button>
  </div>
);

export default MyComponent;

Specific case: CodeSample component

For the CodeSample component (located at src/components/CodeSample), you'll need to generate static JSON files located at src/components/CodeSample/generatedHtml in order to make it work with the smallest possible footprint: the library that handles syntax highlighting is heavy, that's why generating static JSON files prevents the client build from being too big.

To generate the static files, run:

yarn generate:codesample

Contributing

If you want to contribute to this project:

  • Clone the repository
  • Install all dependencies: yarn or npm install
  • Launch Storybook: yarn storybook or npm run storybook

Releases

Once you consider that the develop branch holds enough changes to release a new version, here are the 5 steps to follow:

  1. make sure you're releasing the correct version:
  • Breaking change, bump the first number (1.2.3 -> 2.0.0) - Major
  • New feature, bump the second number (1.2.3 -> 1.3.0) - Minor
  • Bug fixing, bump the third number (1.2.3 -> 1.2.4) - Patch
  • Unsure? Check SEMVER
  1. run npm version [your_version]. This will automatically:
  • checkout develop
  • create a branch named with the version number
  • update the version number
  • push it to GitHub
  1. have a look at the auto-generated CHANGELOG.md. Update some information manually if needed, commit and push it

  2. create two PRs:

  • one to merge [your_version] into develop (this will update the package.json version)
  • the other one to merge [your_version] into master (this will update the Storybook).
  1. run npm run deploy to push the new release to npm.

Important: don't delete your branch once merged. This will help keeping a clear history of previous changes.

Beta releases

Once you consider that the beta-vx branch holds enough changes to release a new version, here are the 2 steps to follow:

  1. bump the package.json version (last number)

  2. run npm run version-beta. This will automatically:

  • checkout beta-vx ( x being your version number )
  • commit any change
  • tag a new version
  • push it to GitHub
  • publish it to NPM

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
8.0.0-beta.1.260beta
9.16.148latest
9.1.1-neural.61beta-neural
10.0.0-beta.251beta-10

Version History

VersionDownloads (Last 7 Days)Published
9.16.148
10.0.0-beta.251
10.0.0-beta.241
10.0.0-beta.230
10.0.0-beta.222
10.0.0-beta.211
10.0.0-beta.201
10.0.0-beta.190
10.0.0-beta.181
10.0.0-beta.170
10.0.0-beta.150
10.0.0-beta.140
10.0.0-beta.130
10.0.0-beta.121
10.0.0-beta.110
10.0.0-beta.101
10.0.0-beta.90
10.0.0-beta.80
10.0.0-beta.70
10.0.0-beta.60
10.0.0-beta.50
10.0.0-beta.40
10.0.0-beta.30
10.0.0-beta.20
10.0.0-beta.11
9.16.01
9.15.10
9.15.01
9.13.01
9.14.11
9.14.00
9.12.00
9.11.00
9.10.21
9.10.11
9.10.00
9.9.00
9.8.01
9.7.01
9.6.21
9.6.11
9.6.00
9.5.20
9.5.10
9.5.02
9.4.02
9.3.00
9.2.10
9.2.01
9.1.1-neural.61
9.1.1-neural.51
9.1.1-neural.40
9.1.1-neural.31
9.1.1-neural.21
9.1.1-neural.10
9.1.20
9.1.10
9.1.00
9.0.00
8.24.00
8.23.10
8.23.00
8.22.01
8.21.01
8.20.01
8.19.01
8.18.10
8.18.01
8.17.00
8.16.02
8.15.01
8.14.12
8.14.01
8.13.02
8.12.01
8.11.00
8.10.10
8.10.01
8.9.10
8.9.01
8.8.00
8.7.30
8.7.21
8.7.10
8.7.00
8.6.10
8.6.00
8.5.00
8.4.00
8.3.00
8.2.10
8.2.00
8.1.11
8.1.00
8.0.10
8.0.0-beta.1.260
8.0.0-beta.1.250
7.0.50
8.0.0-beta.1.240
8.0.0-beta.1.230
8.0.0-beta.1.220
8.0.0-beta.1.210
8.0.0-beta.1.201
8.0.0-beta.1.190
8.0.0-beta.1.180
8.0.0-beta.1.170
8.0.0-beta.1.150
8.0.0-beta.1.140
8.0.0-beta.1.130
8.0.0-beta.1.120
8.0.0-beta.1.110
7.0.40
7.0.30
8.0.0-beta.1.100
8.0.0-beta.1.90
7.0.20
8.0.0-beta.1.80
8.0.0-beta.1.70
7.0.10
7.0.00
8.0.0-beta.1.60
8.0.0-beta.1.50
8.0.0-beta.1.40
8.0.0-beta.1.30
8.0.0-beta.1.20
8.0.0-beta.1.10
8.0.0-beta.1.00
7.0.0-beta.1.270
7.0.0-beta.1.260
7.0.0-beta.1.250
7.0.0-beta.1.240
6.4.045
7.0.0-beta.1.230
7.0.0-beta.1.220
7.0.0-beta.1.210
7.0.0-beta.1.200
7.0.0-beta.1.191
7.0.0-beta.1.180
7.0.0-beta.1.170
7.0.0-beta.1.160
7.0.0-beta.1.150
7.0.0-beta.1.140
6.3.01
7.0.0-beta.1.130
7.0.0-beta.1.120
7.0.0-beta.1.110
7.0.0-beta.1.100
7.0.0-beta.1.90
7.0.0-beta.1.80
6.2.00
6.1.00
7.0.0-beta.1.70
7.0.0-beta.1.60
7.0.0-beta.1.50
7.0.0-beta.1.40
7.0.0-beta.1.20
7.0.0-beta.1.10
7.0.0-beta.1.0.20
7.0.0-beta.1.0.10
7.0.0-beta.10
5.86.0-beta.100.0.10
5.86.0-beta.1000
6.0.30
6.0.20
6.0.10
6.0.0-beta.130
6.0.0-beta.121
5.86.0115
5.85.20
5.85.10
5.85.00
5.84.00
5.83.00
5.82.00
6.0.0-beta.110
6.0.0-beta.100
6.0.0-beta.90
6.0.0-beta.80
6.0.0-beta.70
6.0.0-beta.60
6.0.0-beta.51
6.0.0-beta.40
6.0.0-beta.30
6.0.0-beta.20
5.81.00
5.80.00
5.79.00
5.78.10
5.78.00
5.77.00
5.76.00
5.75.00
5.74.00
5.73.01
5.72.10
5.72.00
5.71.00
5.70.00
5.69.00
5.68.00
5.67.00
5.66.00
5.65.00
5.64.10
5.64.00
5.63.00
5.62.00
5.61.10
5.61.00
5.60.00
5.59.00
5.58.00
5.57.00
5.56.00
5.55.00
5.54.10
5.54.01
5.53.00
5.52.00
5.51.00
5.50.00
5.49.70
5.49.60
5.49.50
5.49.40
5.49.30
5.49.20
5.49.00
5.48.00
6.0.0-beta.10
5.47.20
6.0.00
5.47.10
5.47.01
5.46.00
5.45.10
5.45.01
5.44.01
5.43.00
5.42.00
5.41.00
5.40.01
5.39.00
5.38.00
5.37.00
5.36.00
5.35.01
5.34.10
5.34.00
5.33.01
5.32.10
5.32.00
5.31.10
5.31.00
5.30.00
5.29.00
5.28.10
5.28.00
5.27.20
5.27.10
5.27.00
5.26.00
5.25.00
5.24.00
5.23.11
5.23.00
5.22.00
5.21.10
5.21.00
5.20.10
5.20.00
5.19.00
5.18.00
5.17.20
5.17.10
5.17.00
5.16.40
5.16.30
5.16.21
5.16.10
5.16.00
5.15.00
5.14.00
5.13.00
5.12.00
5.11.00
5.10.10
5.10.00
5.9.00
5.8.00
5.7.10
5.7.00
5.6.01
5.5.30
5.5.21
5.5.10
5.5.00
5.4.00
5.3.10
5.3.00
5.2.00
5.1.10
5.1.00
5.0.10
5.0.00
4.0.0-beta.871
4.0.0-beta.860
4.0.0-beta.850
4.0.0-beta.830
4.0.0-beta.820
4.0.0-beta.810
4.0.0-beta.800
4.0.0-beta.790
4.0.0-beta.780
4.0.0-beta.770
4.0.0-beta.760
4.0.0-beta.751
4.0.0-beta.740
4.0.0-beta.731
4.0.0-beta.720
4.0.0-beta.7147
4.0.0-beta.700
4.0.0-beta.690
4.0.0-beta.680
4.0.0-beta.670
4.0.0-beta.660
4.0.0-beta.650
4.0.0-beta.640
4.0.0-beta.630
4.0.0-beta.621
4.0.0-beta.610
4.0.0-beta.600
4.0.0-beta.590
4.0.0-beta.580
4.0.0-beta.570
4.0.0-beta.560
4.0.0-beta.550
4.0.0-beta.540
4.0.0-beta.530
4.0.0-beta.520
4.0.0-beta.510
4.0.0-beta.500
4.0.0-beta.490
4.0.0-beta.481
4.0.0-beta.470
4.0.0-beta.460
4.0.0-beta.450
4.0.0-beta.440
4.0.0-beta.430
4.0.0-beta.420
4.0.0-beta.410
4.0.0-beta.400
4.0.0-beta.390
4.0.0-beta.380
4.0.0-beta.370
4.0.0-beta.360
4.0.0-beta.350
4.0.0-beta.340
4.0.0-beta.330
4.0.0-beta.320
4.0.0-beta.310
4.0.0-beta.300
4.0.0-beta.290
4.0.0-beta.280
4.0.0-beta.270
4.0.0-beta.260
4.0.0-beta.251
4.0.0-beta.240
4.0.0-beta.230
4.0.0-beta.220
4.0.0-beta.210
4.0.0-beta.201
4.0.0-beta.190
4.0.0-beta.180
4.0.0-beta.170
4.0.0-beta.160
4.0.0-beta.150
4.0.0-beta.140
4.0.0-beta.131
4.0.0-beta.120
4.0.0-beta.110
4.0.0-beta.100
4.0.0-beta.90
4.0.0-beta.80
4.0.0-beta.71
4.0.0-beta.60
3.5.00
4.0.0-beta.50
4.0.0-beta.40
4.0.0-beta.30
3.4.10
3.4.00
4.0.0-beta.20
4.0.0-beta.10
3.3.00
4.0.0-beta.01
3.2.00
3.1.00
3.0.30
3.0.20
3.0.10
3.0.01
3.0.0-beta.600
3.0.0-beta.590
3.0.0-beta.580
3.0.0-beta.570
3.0.0-beta.560
3.0.0-beta.550
3.0.0-beta.540
3.0.0-beta.530
3.0.0-beta.520
3.0.0-beta.510
2.106.02
3.0.0-beta.500
3.0.0-beta.490
3.0.0-beta.480
3.0.0-beta.470
3.0.0-beta.460
3.0.0-beta.450
3.0.0-beta.440
3.0.0-beta.430
2.105.01
3.0.0-beta.420
3.0.0-beta.410
3.0.0-beta.400
3.0.0-beta.390
3.0.0-beta.380
3.0.0-beta.370
3.0.0-beta.360
3.0.0-beta.350
3.0.0-beta.340
3.0.0-beta.330
3.0.0-beta.321
2.104.00
3.0.0-beta.310
3.0.0-beta.300
2.103.00
2.102.00
3.0.0-beta.290
3.0.0-beta.280
3.0.0-beta.270
3.0.0-beta.261
3.0.0-beta.250
3.0.0-beta.240
3.0.0-beta.230
3.0.0-beta.220
3.0.0-beta.210
2.101.00
2.100.02
3.0.0-beta.200
3.0.0-beta.190
3.0.0-beta.181
2.99.00
3.0.0-beta.170
3.0.0-beta.160
2.98.10
2.98.00
3.0.0-beta.150
3.0.0-beta.140
2.97.01
2.96.11
2.96.00
2.95.00
2.94.00
2.93.10
2.93.00
2.92.01
3.0.0-beta.130
3.0.0-beta.120
2.90.00
2.89.00
2.88.11
3.0.0-beta.110
3.0.0-beta.100
3.0.0-beta.91
2.88.01
2.87.00
2.86.00
2.85.00
2.84.00
3.0.0-beta.80
3.0.0-beta.70
3.0.0-beta.60
3.0.0-beta.50
2.83.11
2.83.00
2.82.01
3.0.0-beta.40
2.81.00
2.80.01
2.79.00
2.78.00
2.77.00
2.76.31
2.76.21
2.76.10
2.75.01
2.74.31
2.74.20
2.74.10
2.74.00
2.73.00
2.72.10
2.72.00
2.71.01
2.70.00
3.0.0-beta.31
3.0.0-beta.20
3.0.0-beta.11
2.69.00
2.68.11
2.68.01
2.67.01
2.66.01
2.65.01
2.64.31
2.64.20
2.64.10
2.64.01
2.63.01
2.62.00
2.61.21
2.61.10
2.61.01
2.60.00
2.59.11
2.59.01
2.58.00
2.57.31
2.57.20
2.57.10
2.57.00
2.56.01
2.55.11
2.55.01
2.54.00
2.53.00
2.52.00
2.51.00
2.50.00
2.49.01
2.48.10
2.48.00
2.47.01
2.46.00
2.45.01
2.44.01
2.43.40
2.43.30
2.43.20
2.43.10
2.43.01
2.42.31
2.42.22
2.42.11
2.42.01
2.41.10
2.41.00
2.40.10
2.40.00
2.39.20
2.39.10
2.39.00
2.38.01
2.37.01
2.36.01
2.35.00
2.34.00
2.33.21
2.33.11
2.33.01
2.32.00
2.31.10
2.31.00
2.30.00
2.29.10
2.29.01
2.28.12
2.28.01
2.27.00
2.26.20
2.26.10
2.26.01
2.25.22
2.25.10
2.25.02
2.24.30
2.24.20
2.24.02
2.23.20
2.23.11
2.23.00
2.22.01
2.21.01
2.20.01
2.19.10
2.19.00
2.18.00
2.17.10
2.17.01
2.16.00
2.15.20
2.15.11
2.15.01
2.14.01
2.13.01
2.12.10
2.12.00
2.11.21
2.11.10
2.11.01
2.10.10
2.10.01
2.9.00
2.8.01
2.7.01
2.6.10
2.6.01
2.5.01
2.4.01
2.3.20
2.3.10
2.3.01
2.2.00
2.1.00
2.0.00
1.0.10
1.0.01
1.0.0-beta.1140
1.0.0-beta.1130
1.0.0-beta.1120
1.0.0-beta.1110
1.0.0-beta.1100
1.0.0-beta.1091
1.0.0-beta.1081
1.0.0-beta.1070
1.0.0-beta.1061
1.0.0-beta.1051
1.0.0-beta.1041
1.0.0-beta.1030
1.0.0-beta.1020
1.0.0-beta.1010
1.0.0-beta.1000
1.0.0-beta.990
1.0.0-beta.980
1.0.0-beta.970
1.0.0-beta.961
1.0.0-beta.950
1.0.0-beta.940
1.0.0-beta.931
1.0.0-beta.921
1.0.0-beta.911
1.0.0-beta.901
1.0.0-beta.890
1.0.0-beta.880
1.0.0-beta.871
1.0.0-beta.861
1.0.0-beta.850
1.0.0-beta.840
1.0.0-beta.831
1.0.0-beta.821
1.0.0-beta.810
1.0.0-beta.801
1.0.0-beta.790
1.0.0-beta.781
1.0.0-beta.770
1.0.0-beta.760
1.0.0-beta.750
1.0.0-beta.741
1.0.0-beta.731
1.0.0-beta.710
1.0.0-beta.702
1.0.0-beta.681
1.0.0-beta.660
1.0.0-beta.650
1.0.0-beta.641
1.0.0-beta.630
1.0.0-beta.621
1.0.0-beta.611
1.0.0-beta.601
1.0.0-beta.580
1.0.0-beta.571
1.0.0-beta.560
1.0.0-beta.551
1.0.0-beta.540
1.0.0-beta.531
1.0.0-beta.522
1.0.0-beta.510
1.0.0-beta.500
1.0.0-beta.490
1.0.0-beta.480
1.0.0-beta.470
1.0.0-beta.460
1.0.0-beta.451
1.0.0-beta.440
1.0.0-beta.430
1.0.0-beta.421
1.0.0-beta.401
1.0.0-beta.390
1.0.0-beta.380
1.0.0-beta.370
1.0.0-beta.360
1.0.0-beta.351
1.0.0-beta.341
1.0.0-beta.330
1.0.0-beta.321
1.0.0-beta.312
1.0.0-beta.301
1.0.0-beta.291
1.0.0-beta.280
1.0.0-beta.271
1.0.0-beta.260
1.0.0-beta.251
1.0.0-beta.240
1.0.0-beta.230
1.0.0-beta.220
1.0.0-beta.211
1.0.0-beta.201
1.0.0-beta.180
1.0.0-beta.171
1.0.0-beta.160
1.0.0-beta.150
1.0.0-beta.141
1.0.0-beta.130
1.0.0-beta.121
1.0.0-beta.111
1.0.0-beta.101
1.0.0-beta.91
1.0.0-beta.80
1.0.0-beta.71
1.0.0-beta.60
1.0.0-beta.51
1.0.0-beta.40
1.0.0-beta.30
1.0.0-beta.21
1.0.0-beta.10
1.0.0-beta.01

Package Sidebar

Install

npm i @algolia/ui-library

Weekly Downloads

470

Version

9.16.1

License

none

Unpacked Size

2.12 MB

Total Files

1320

Last publish

Collaborators

  • felipe-bernal
  • cdhawke-algolia
  • mariaaalungu
  • vascobettencourt
  • fernando_beck_algolia
  • algthomasbritton
  • shaejaz
  • wwalser
  • jkaho
  • mprevell97
  • louishousiaux
  • antoine.gilles
  • eventexperiences_algolia
  • jsok_algolia
  • bhinchley-algolia
  • hugowit
  • alg-admin
  • aymeric.giraudet
  • gavinwade12
  • bhcastle
  • jasonberry
  • scyganek-algolia
  • drodriguln
  • abodelot
  • leviwhalen
  • sfaiqh
  • valentindotxyz
  • fluf
  • instantsearch-bot
  • taylorcjohnson_algolia
  • pjankowski5312
  • raed-algolia
  • dylantientcheu
  • catalgolia
  • morgan-algolia
  • algabet
  • andy_ds
  • bengreenbank
  • alg-bgastinne
  • daltondickalgolia
  • jcohonner-algolia
  • robertmogos
  • emmanuel.fortin
  • ejaldorau
  • dhaya.b
  • lukyvj
  • marielaure
  • haroenv
  • rayrutjes
  • jerska
  • samouss
  • therealwebby
  • francoischalifour
  • jonmontane
  • tkrugg
  • seafoox
  • sylvainh
  • lorrissaintgenez
  • broujo
  • e-krebs
  • kombucha
  • sylvain
  • crawler-team
  • amcdaid106
  • devinalgolia
  • jvenezia
  • otomatik
  • sophiem03
  • sarahdayan
  • maximehuang
  • guitek
  • matthewbond
  • cyril.descossy
  • tatsuro
  • danajeremy
  • mathougui
  • xavdh
  • agdavid
  • rasemotte
  • plnech
  • shortcuts
  • praagyajoshi
  • alphonseb
  • leodau
  • fabienmotte
  • sarahfranc
  • millotp