{/* prettier-ignore */}
{/*
Copyright 2023 Comcast Cable Communications Management, LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

SPDX-License-Identifier: Apache-2.0
\*/}

import { Meta, Title } from '@storybook/blocks';
import * as SurfaceStories from './Surface.stories';

<Meta of={SurfaceStories} />

<Title />

Surface allows for the background of components such as listItems, cards, and tiles to change dependent on the state of the component.

## Source

https://github.com/rdkcentral/Lightning-UI-Components/blob/develop/packages/@lightningjs/ui-components/src/components/Surface/Surface.js

## Usage

```js
import { Surface } from '@lightningjs/ui-components';

class Basic extends lng.Component {
  static _template() {
    return {
      Surface: {
        type: Surface
      }
    };
  }
}
```

## API

### Style Properties

| name            | type          | description                               |
| --------------- | ------------- | ----------------------------------------- |
| animation       | object        | animation style to apply to surface scale |
| backgroundColor | string        | color of the background                   |
| radius          | number\|array | set rounded corner radius                 |
| scale           | number        | percentage to scale by on focus           |
