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

<Meta of={CardRadioStories} />

<Title />

This component is a variant of the `Card` component that includes multiple lines of text and radio functionality.

## Source

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

## Usage

`CardRadio` can display a title, subtitle, description and details
`CardRadio` extends [CardTitle](?path=/docs/components-card-cardtitle--docs)

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

class Basic extends lng.Component {
  static _template() {
    return {
      CardRadio: {
        type: CardRadio,
        title: 'Title',
        subtitile: 'subtitle',
        description: 'description',
        details: 'details'
      }
    };
  }
}
```

## API

### Properties

| name     | type             | required | default   | description                                                                                             |
| -------- | ---------------- | -------- | --------- | ------------------------------------------------------------------------------------------------------- |
| radio    | object           | false    | undefined | Object containing all properties supported in the [Radio component](?path=/docs/components-radio--docs) |
| subtitle | string \| object | false    | undefined | The text to be displayed in the subtitle section of the card.                                           |

### Style Properties

| name                 | type             | description                             |
| -------------------- | ---------------- | --------------------------------------- |
| descriptionTextStyle | string \| object | styles applied to the description text. |
| subtitleTextStyle    | string \| object | styles applied to the subtitle text.    |
