This is a group of work-in-progress components. Canvas Kit Labs is an incubator for new and experimental components. Since we have a rather rigorous process for getting components in at a production level, it can be valuable to make them available earlier while we continuously iterate on the API, functionality and accessibility. The Labs components allow us to do that as needed.
Note: components in Labs do not require a full design or accessibility review. Use them at your own risk.
Generally, Canvas Kit Labs components are promoted to Canvas Kit Preview before
being promoted into the universal module @workday/canvas-kit-react
. Essentially, Canvas Kit Labs
is for alpha components and Canvas Kit Preview is for beta components.
Due to the nature of this bundle of components, we will be continuously iterating, likely making breaking changes. The goal of this bundle is to work unconstrained by our design system's semantic versioning. This means that breaking changes can be deployed to Labs modules at any time and it will not trigger a major version bump across our other modules. Regardless of the fact that we use a fixed version number for all components, all changes/additions in this bundle will never result in a major version bump across our component library.
By consuming any of these modules, you acknowledge the potential complexity of updating and ultimately performing a migration when components are promoted to a stable version.
These components are purely opt in, so they are not included in the main module
@workday/canvas-kit-react
.
- Docs & examples
- Change announcements & migration strategies
- Breaking changes can happen at any time
- Updates or promotion to Canvas Kit Preview may require signficant refactoring
- Direct support when we have capacity, but we prioritize Preview and Main components first
/modules
...
/labs-react
/new-component
/* Standard React component structure */
- Run
yarn create-component
- When asked
What category should this component live in?
, selectLabs (alpha)
. - Your new module will be generated in accordance with the file structure above. It will get a
package name of
@workday/canvas-kit-labs-react/<COMPONENT>
. - If you had the storybook server running, you may need to restart it.
- Copy it into the above module structure
- Add a warning to the README:
This component is work in progress and currently in pre-release.
- Update any necessary paths (links to storybook utils, tsconfig, etc.)
- Change the storybook paths to add a
Labs
prefix (e.g.Labs/Menu/Default
)
- Run
yarn promote-component