# Development using UI Suite USWDS

## Common questions

### How to extend a component

1. Starting with version 4.0.2 all components have a libraryOverrides entry, so
   custom themes should be able to use `libraries-override` or
   `libraries-extend`.
```
# Override the entire library:
libraries-override:
  core/components.some-theme--some-component: my-theme/my-library

# Omit the entire library:
libraries-override:
  core/components.some-theme--some-component: false

# Override a specific file:
libraries-override:
  core/components.some-theme--some-component:
    css:
      component:
        ../themes/contrib/some-theme/components/some-component/some-component.css: my-overrides/some-component.css

# Omit a specific file:
libraries-override:
  core/components.some-theme--some-component:
    css:
      component:
        ../themes/contrib/some-theme/components/some-component/some-component.css: false

# Libraries extend
libraries-extend:
  core/components.some-theme--some-component:
    - sub-theme/extended-library
```
