diff --git a/src/components/lists/DescriptionList.stories.jsx b/src/components/lists/DescriptionList.stories.jsx new file mode 100644 index 0000000..89981a0 --- /dev/null +++ b/src/components/lists/DescriptionList.stories.jsx @@ -0,0 +1,41 @@ +import * as React from "react" +import * as ReactDOM from "react-dom" +import * as Decorators from "../../utils/Decorators" +import { DescriptionList } from "./DescriptionList" + + +export default { + component: DescriptionList, + title: "Lists/DescriptionList", + decorators: [Decorators.Bluelib], + argTypes: { + customColor: { + control: {type: "color"}, + }, + }, +} + + +export const Default = props => ( + + + LOL + + + Laughing out loud + + + KEK + + + Equivalent to lol, but said by a member of the Horde + + + LUL + + + Equivalent to lol, used by twitch.tv users to send an emoticon with the face of TotalBiscuit + + +) +Default.args = {} diff --git a/src/components/lists/DescriptionList.tsx b/src/components/lists/DescriptionList.tsx new file mode 100644 index 0000000..a8e4cb9 --- /dev/null +++ b/src/components/lists/DescriptionList.tsx @@ -0,0 +1,47 @@ +import * as React from "react" +import * as ReactDOM from "react-dom" +import * as Types from "../../types" +import {BaseElement} from "../BaseElement" +import mergeClassNames from "classnames" + + +interface DescriptionListProps { + [props: string]: any, +} + + +export function DescriptionList({...props}: DescriptionListProps): JSX.Element { + props.bluelibClassNames = mergeClassNames(props.bluelibClassNames, "list-description") + + return ( + + ) +} + + +interface DescriptionListKeyProps { + [props: string]: any, +} + + +DescriptionList.Key = function({...props}: DescriptionListKeyProps): JSX.Element { + props.bluelibClassNames = mergeClassNames(props.bluelibClassNames, "list-description-key") + + return ( + + ) +} + + +interface DescriptionListValueProps { + [props: string]: any, +} + + +DescriptionList.Value = function({...props}: DescriptionListValueProps): JSX.Element { + props.bluelibClassNames = mergeClassNames(props.bluelibClassNames, "list-description-value") + + return ( + + ) +}