Trial Bars
Trial bar components are used to provide an interactive and educational prospect experience for setup.
Interactive Examples
Base
Need more examples? Find a bug?
For even more examples, please take a preview of our development environment built on the popular Storybook platform that is an always up-to-date deploy of this repository's master
branch. All example code on this page can be found in the /components/trial-bar/__examples__/
folder. Storybook example code can be found in /components/trial-bar/__docs__/storybook-stories.jsx
.
Property Details
All public, supported component props are listed below. If you believe there is a clearer way to describe a property, please submit a pull request. Property descriptions are built from source code comments (written in Markdown) located within propTypes
objects which are typically found in each component's index.jsx
. Pull requests to update these descriptions can easily be done without cloning this repository by clicking "Edit this file" in the Github user interface.
Name | Type | Required | Default | Description |
---|---|---|---|---|
children | node | Provide children of the types
| ||
className | union | CSS classes to be added to the component. Uses | ||
labels | shape | { timeLeftUnitAfter: left in trial, } | Text labels for internationalization This object is merged with the default props object on every render.
| |
onRenderActions | func | Renders the actions section of the trial bar. | ||
style | object | Customs styles to be applied to the component. |
Related Sub-Components
Button
A Button within the Trial Bar.
Dropdown
A Dropdown within the Trial Bar.