Skip to Content
DocumentationCardsCardWeek

CardWeek

A flexible card component designed for displaying weekly content.

Examples

Basic

A simple card without tag and progress circle.

Intensivo R+ 2025
Semana 1
Clínica médica
Estimado 1h

With Tag

Use the tag prop on CardWeekBreadcrumb to display a tag. You can also use the tagIcon prop to add an icon to the tag.

Prioritário
Última revisão há 0 dias
Semana 1
Clínica médica
0 vezes revisado
Estimado 2h

With Progress Circle

Use CardWeekProgressCircle to display a circular progress indicator in the header.

Prioritário
Última revisão há 0 dias
Semana 1
75%
na última revisão
Clínica médica
3 vezes revisado
Estimado 5h

Status

Use the done, postponed, or skipped props on CardWeek to indicate the card’s completion status. The title and description will have a strikethrough effect and the status indicator will change accordingly.

Prioritário
Última revisão há 0 dias
Semana 1 - Feito
Clínica médica
5 vezes revisado
Estimado 0h
Feito
Prioritário
Última revisão há 3 dias
Semana 2 - Adiado
Clínica médica
2 vezes revisado
Estimado 0h
Adiado
Prioritário
Última revisão há 7 dias
Semana 3 - Pulado
Clínica médica
1 vezes revisado
Estimado 0h
Pulado

API

CardWeek Structure

ComponentDescriptionUsage
CardWeekRoot container with border and rounded cornersWraps all card content
CardWeekBreadcrumbBreadcrumb container with muted backgroundWraps Breadcrumb components (BreadcrumbItem, BreadcrumbSeparator, etc.)
CardWeekContainerContent container with padding and gapWraps Header, Content, Tags, and Footer with consistent spacing
CardWeekHeaderHeader section with flex layout for title, description and progressContains title, description and optional progress circle
CardWeekTitleTitle element with semibold font weight (strikethrough when done/postponed/skipped)Primary heading of the card
CardWeekDescriptionMuted description text (muted when done/postponed/skipped)Secondary text above the title
CardWeekTagsContainer for tag elements with flex wrapWraps Tag components
CardWeekProgressLinear progress barShows completion progress in footer between status and actions
CardWeekProgressCircleCircular progress indicatorShows completion percentage in header
CardWeekContentContainer for status elements with flex layoutWraps CardWeekText and CardWeekStatus
CardWeekTextText element with optional time iconDisplays text content, with time icon when isTime prop is true
CardWeekStatusStatus badge that shows completion stateAutomatically displays “Feito”, “Adiado”, or “Pulado” based on card state
CardWeekFooterFooter section with auto margin topContains content, progress and actions
CardWeekActionsAction container with top border (primary border when done)Buttons or interactive elements

CardWeek

PropertyTypeDefaultDescription
donebooleanfalseMarks the card as completed. Applies strikethrough to title and shows “Feito” status.
postponedbooleanfalseMarks the card as postponed. Applies strikethrough to title and shows “Adiado” status.
skippedbooleanfalseMarks the card as skipped. Applies strikethrough to title and shows “Pulado” status.
classNamestring-Additional CSS classes for the card container.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardWeekBreadcrumb

PropertyTypeDefaultDescription
tagstring-Optional tag text displayed at the end of the breadcrumb.
tagIconReact.ReactElement-Optional icon to display inside the tag.
childrenReact.ReactNode-Breadcrumb components (BreadcrumbItem, BreadcrumbSeparator, BreadcrumbPage, etc.).
classNamestring-Additional CSS classes for the breadcrumb container.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardWeekContainer

PropertyTypeDefaultDescription
childrenReact.ReactNode-Card content (Header, Content, Tags, Footer components).
classNamestring-Additional CSS classes for the container.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardWeekHeader

PropertyTypeDefaultDescription
childrenReact.ReactNode-Header content (title, description, progress).
classNamestring-Additional CSS classes. Use border-b to add bottom border with automatic padding.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardWeekTitle

PropertyTypeDefaultDescription
childrenReact.ReactNode-Title text content.
classNamestring-Additional CSS classes for the title element.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardWeekDescription

PropertyTypeDefaultDescription
childrenReact.ReactNode-Description text content.
classNamestring-Additional CSS classes for the description element.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardWeekTags

PropertyTypeDefaultDescription
childrenReact.ReactNode-Tag components to be displayed.
classNamestring-Additional CSS classes for the tags container.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardWeekProgress

Linear progress bar displayed in the footer between status and actions.

PropertyTypeDefaultDescription
valuenumber0Progress percentage value (0-100).
classNamestring-Additional CSS classes for the progress container.
…propsProgressProps-All Progress component props are supported.

CardWeekProgressCircle

Circular progress indicator displayed in the header.

PropertyTypeDefaultDescription
valuenumber0Progress percentage value (0-100).
labelstring-Optional label text below the percentage.
sizenumber104Size of the progress circle in pixels.
strokeWidthnumber2Width of the progress stroke.
indicatorClassNamestring-Additional CSS classes for the progress indicator.
trackClassNamestring-Additional CSS classes for the progress track.
valueClassNamestring-Additional CSS classes for the value text.
labelClassNamestring-Additional CSS classes for the label text.
classNamestring-Additional CSS classes for the progress container.
…propsProgressCircleProps-All ProgressCircle component props are supported.

CardWeekContent

Container for text and status elements in the footer.

PropertyTypeDefaultDescription
childrenReact.ReactNode-Content to be displayed (CardWeekText and CardWeekStatus).
classNamestring-Additional CSS classes for the content container.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardWeekFooter

PropertyTypeDefaultDescription
childrenReact.ReactNode-Footer content (status, actions).
classNamestring-Additional CSS classes for the footer.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardWeekText

Text element with optional time icon.

PropertyTypeDefaultDescription
isTimebooleanfalseWhen true, displays a time icon before the content and applies secondary foreground color.
childrenReact.ReactNode-Text content to be displayed.
classNamestring-Additional CSS classes for the text container.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardWeekStatus

Status badge that automatically displays the completion state based on the parent CardWeek props. Returns null if no status is set.

PropertyTypeDefaultDescription
classNamestring-Additional CSS classes for the status badge.
…propsReact.ComponentProps<“div”>-All native div props are supported.

Status behavior:

  • When done is true on CardWeek: Shows “Feito” with green badge
  • When postponed is true on CardWeek: Shows “Adiado” with yellow badge
  • When skipped is true on CardWeek: Shows “Pulado” with yellow badge
  • When none are set: Returns null (renders nothing)

CardWeekActions

PropertyTypeDefaultDescription
childrenReact.ReactNode-Action buttons or interactive elements.
classNamestring-Additional CSS classes for the actions container.
…propsReact.ComponentProps<“div”>-All native div props are supported.
Last updated on