Skip to main content
Version: Next

Card API

import { Card } from '@editora/ui-react';

Props​

PropTypeDescription
childrenReact.ReactNode
disabledboolean
elevation'none' | 'low' | 'high'
interactiveboolean
radiusnumber | string
size'sm' | 'md' | 'lg' | '1' | '2' | '3'
tone'brand' | 'neutral' | 'info' | 'success' | 'warning' | 'danger'
variant'surface' | 'outline' | 'soft' | 'solid' | 'ghost' | 'glass' | 'contrast'

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Card.Header props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Card.Footer props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Card.Inset props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Card.Media props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Card.Title props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Card.Description props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Card.Actions props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-card>​

Card renders the ui-card custom element from @editora/ui-core, which can also be used without React.

Attributes: disabled, elevation, interactive, radius, role, size, tabindex, tone, variant