{/* 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 CardStories from './Card.stories';

<Meta title="Components/Card" />

# Cards

Cards are very configurable. Cards is the foundational basis for all other card variations.

## Source

https://github.com/rdkcentral/Lightning-UI-Components/blob/develop/packages/%40lightningjs/ui-components/src/components/Card/Card.js

## Usage

Cards work by providing many of the relevant properties from TextBox, Surface, and Tile.

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

class Basic extends lng.Component {
  static _template() {
    return {
      Card: {
        type: Card,
        title: 'Card'
      }
    };
  }
}
```

## API

### Properties

| name  | type             | required | default   | description             |
| ----- | ---------------- | -------- | --------- | ----------------------- |
| title | string \| object | false    | undefined | headline of the content |

### Style Properties

| name              | type             | description                                                                  |
| ----------------- | ---------------- | ---------------------------------------------------------------------------- |
| backgroundColor   | string           | color of the card                                                            |
| paddingHorizontal | number           | padding on the x-axis between the right and left of the card and its content |
| paddingVertical   | number           | padding on the y-axis between the top and bottom of the card and its content |
| radius            | number \| array  | corner radius of card                                                        |
| titleTextStyle    | string \| object | text style for the title text                                                |
