Skip to main content

Delete UI library components

note

Only UI library components created through sfb-toolkit components-copy command can be deleted using this method.

If you wish to delete any of our UI library components you can easily do this by executing the command below and following the prompts:

sfb-toolkit components-delete

A list of components will be shown together with the version of the UI library (@appdirect/sfb-theme-components@0.0.352 or newer) that they were copied from separated by _:

* [0_0_352] Header
* [0_0_352] Footer

This command will also automatically remove all the selected components (non commented out) from the workspaceFolder/themes/[yourThemeName]/customComponents/index.js file.

Delete nested UI library components

Some of our components are part of other components (i.e. HeaderAuxiliaryBar is part of Header). As such, if you chose to copy (sfb-toolkit components-copy) both HeaderAuxiliaryBar and Header then you will not be able to delete the HeaderAuxliaryBar without selecting to also delete the Header. Nevertheless, it is possible to delete the Header without having to delete HeaderAuxliaryBar.

An error will be shown to indicate this dependency:

[0_0_352] HeaderAuxiliaryBar........................[ERROR][DEPENDENCY_WITH_HEADER]

Was this page helpful?