No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

created:1/29/2021
,
updated:2/16/2021

Overview

@component-controls/components is an ecclectic collection of theme-ui-based components that are used throughout component-controls.

Third-party libraries used:

Installation

$ npm install @component-controls/components --save

Cross-usage

You can view a table with the cross-usage of the included components

Components

sort by:

Containers

Container box with actions.

created:5 years ago
updated:5 years ago
commits:10
source lines:20
comments %:50

Collapsible block container with a title. The title creates also an attribute id and an octicon for github style navigation.

Block title

created:5 years ago
updated:4 years ago
commits:38
source lines:77
comments %:32

Animated expand/collapse container component, using react-animate-height.

created:5 years ago
updated:5 years ago
commits:5
source lines:17
comments %:41

Container component that will fade/outline a label at the bottom

some text
donut component
created:4 years ago
updated:4 years ago
commits:3
source lines:15
comments %:53

Action container with built-in collapsible panels

created:5 years ago
updated:4 years ago
commits:10
source lines:128
comments %:14

Popover container that is triggered by a click/hover event, using react-popper-tooltip.

created:5 years ago
updated:4 years ago
commits:10
source lines:85
comments %:7

Display

avatar to be used in an AvatarList container

created:4 years ago
updated:4 years ago
commits:1
source lines:129
comments %:19

Avatar list that links to github profiles using rest api

created:4 years ago
updated:4 years ago
commits:5
source lines:57
comments %:19

A page header component

header
created:5 years ago
updated:5 years ago
commits:1
source lines:7
comments %:57

Progress indicator with a label

3
created:4 years ago
updated:4 years ago
commits:1
source lines:23
comments %:22

Syntax highliting source code component. Uses prism for the actual source display.

export const sample = () => {
const [state, setState] = React.useState(false);
return (
<BooleanEditor
name="prop"
onChange={(name, newVal) => setState(newVal)}
prop={{ type: ControlTypes.BOOLEAN, value: state }}
/>
);
};
created:5 years ago
updated:4 years ago
commits:14
source lines:48
comments %:13

Syntax highlighter component using prism for the actual source display.

import { Button } from 'theme-ui';
created:5 years ago
updated:4 years ago
commits:8
source lines:105
comments %:34

Table component using react-table to display the data. Can be grouped, filtered, sorted. Themed with theme-ui for consistency.

Name
User Name
Street
City
Zip Code
Edison KeeblerDanielle_PollichJayde RapidsMontanaborough20635
London RunolfssonAudreanne.SanfordTowne CliffLangoshport65133
Sebastian GleasonJohnathan.Klocko58Haley DrivesSouth Kiannaberg58169
Gladys BaumbachDarien.GutmannAnastasia PointsWest Graycemouth33850
Ms. Jaunita LubowitzKody.McClureLindgren InletGrimesshire27558-3367
Jacques BernhardNichole_Kozey4Ramona StationGunnerland64856
Dr. Rylee DuBuqueLewis.Vandervort7Kelly LandingLake Gabe98806
Nettie RunteJohnny.Marquardt30Larson SquareHannaton81636
Isabell Feil Jr.Rafaela.Gusikowski4Kaya MountainKemmerbury01459
Jillian HoegerAnnamae.Maggio23Darlene CourseEarlenebury70931
Melyssa HermanVerona_WizaZulauf CircleCorkeryland52057-0050
Urban TowneKayleigh_HauckBechtelar ExtensionsRuthshire49065
Hazle HansenHassie_Tillman73Reichel StreetWest Audreymouth53056-1765
Jamarcus StromanOrval13Hobart ParkWest Rahul60010
Ms. Melany SengerHenderson.KihnLia VillageDuBuqueview93383
Granville MannChristine.Bahringer10Hilpert LandingNorth Autumnside87215-3190
Delia FeeneyGreyson13Purdy FordsZoilaside96503
Mr. Johanna TurcotteDameon76Mante JunctionsNorth Roxane17884-9473
Renee ErdmanBen.HammesTreutel InletPort Maiabury21650
Graham BrownEloise.Schumm35Alia PortPort Brandt80217-7245
created:5 years ago
updated:4 years ago
commits:22
source lines:249
comments %:21

A container component to display text in a colored box, with a semi-transparent background.

some text
created:5 years ago
updated:4 years ago
commits:14
source lines:42
comments %:48

Image component with a title if available

alt textsome image title
created:4 years ago
updated:4 years ago
commits:3
source lines:20
comments %:15

Displays a value with a small label

date created01/01/2020
created:4 years ago
updated:4 years ago
commits:1
source lines:14
comments %:71

zoom effect using transform

created:5 years ago
updated:5 years ago
commits:2
source lines:23
comments %:26

Input

Popover multiselect displaying checkboxes to select/unselect.

created:4 years ago
updated:4 years ago
commits:1
source lines:40
comments %:25

an input component combined with a popover, can be used for incremental search.

created:5 years ago
updated:4 years ago
commits:10
source lines:182
comments %:23

Toggle components can be used to edit boolean values. Uses react-switch component.

created:5 years ago
updated:4 years ago
commits:4
source lines:36
comments %:33

Navigation

A strip of actions to be attached to a container. The action items contain the labels and click event handlers. Actions can accept an order prop, and can also overwrite default actions.

created:5 years ago
updated:4 years ago
commits:35
source lines:62
comments %:21

Anchor link to an external url, adds the default

target="_blank" rel="noopener noreferrer"
props.

created:5 years ago
updated:4 years ago
commits:3
source lines:6
comments %:67

Configurable anchor link with a LinkContext. Also checks if the link is intrenal to the site/app or external.

created:5 years ago
updated:4 years ago
commits:4
source lines:14
comments %:21

h1-h6 heading component that generates automatically a github-style anchor to navigate to a section on hover.

LinkHeading text

created:4 years ago
updated:4 years ago
commits:4
source lines:56
comments %:7

Pagination component to navigate previous/next page

created:5 years ago
updated:5 years ago
commits:3
source lines:42
comments %:24

Collapsible side bar component

  • item 1
  • item 2
  • item 3
created:5 years ago
updated:4 years ago
commits:3
source lines:43
comments %:30

Tabs component with react-tabs and theme-ui styling.

panel 1
created:5 years ago
updated:4 years ago
commits:12
source lines:35
comments %:37

Hierarchical collapsible tree structure

created:4 years ago
updated:4 years ago
commits:4
source lines:185
comments %:2

Typography

Markdown content with custom components - for example

<p />
is with smaller margin than regular markdown content.

Some description markdown

created:4 years ago
updated:4 years ago
commits:1
source lines:15
comments %:33

Markdown display component to compile and display markdown at run-time. Uses markdown-to-jsx internally.

Header H1

Header H2

Header H3

Header H4

Header H5

some text

@theme-ui

created:5 years ago
updated:5 years ago
commits:7
source lines:18
comments %:67

h2
level heading with faded text and font-weight 400.

Subtitle text

created:5 years ago
updated:5 years ago
commits:7
source lines:15
comments %:60

Utilities

Theme-ui dark/light mode toggle.

created:5 years ago
updated:5 years ago
commits:4
source lines:40
comments %:10

Container component to enclose items that will provide copy functionality on click.

some text.

click to copy

created:4 years ago
updated:4 years ago
commits:2
source lines:58
comments %:16