Skip to main content
ContentCardHeader
@coinbase/cds-web@8.13.6
A header component for ContentCard.
Import
import { ContentCardHeader } from '@coinbase/cds-web/cards/ContentCard'
SourceView source codeStorybookView StorybookFigmaView Figma
Related components

Basic Example

Loading...
Live Code
function Example() {
  return (
    <VStack bordered borderRadius="400" maxWidth={375} padding={1}>
      <ContentCardHeader
        avatar="/img/card/content_card_custom_avatar_1.png"
        meta={
          <Box marginLeft={-1}>
            <TextLabel2 as="span" color="fgMuted" numberOfLines={1}>
              ・News・5 hrs
            </TextLabel2>
          </Box>
        }
        title="Description"
        end={
          <IconButton
            transparent
            accessibilityLabel="More information about coinDesk card news"
            name="more"
            variant="secondary"
          />
        }
      />
    </VStack>
  );
}

Is this page useful?

Coinbase Design is an open-source, adaptable system of guidelines, components, and tools that aid the best practices of user interface design for crypto products.