Kinetic Card

A content card with an eyebrow, title, text and action. Set interactive or href to make the whole card a link or button with a hover tilt.

  • <kt-kinetic-card>
  • Display
  • No framework

Kinetic Card

Install the library, add your first component and tune the look to your brand in about five minutes.Faster rendering, three new components and better keyboard support across the board.Every component ships with roles, labels and visible focus, so you do not have to add them yourself.

The code

Copy the Kinetic Card

Fastest: press Copy on the card above for one complete file. To build it into your own project, use the files below: the markup, the styles, this component’s script and the shared effects script (effects.js) that every component uses.

<kt-kinetic-card eyebrow="Guide" title="Getting started" action="Read the guide" interactive>Install the library, add your first component and tune the look to your brand in about five minutes.</kt-kinetic-card>

<kt-kinetic-card eyebrow="Changelog" title="What is new in 2.4" action="See changes" href="/ui/card">Faster rendering, three new components and better keyboard support across the board.</kt-kinetic-card>

<kt-kinetic-card eyebrow="Pro tip" title="Keep it accessible" action="Learn more">Every component ships with roles, labels and visible focus, so you do not have to add them yourself.</kt-kinetic-card>

Attributes

NameWhat it doesDefault
titleCard heading.—
eyebrowSmall uppercase line above the title.—
actionAction label. A button on a plain card, a styled label on a whole-card link.—
hrefMake the whole card a link to this address.—
interactiveMake the whole card a button with lift, tilt and spotlight on hover.—

Keyboard and screen readers

  • A plain card is an article. With href it is one link, with interactive it is one button: Tab focuses it, Enter (and Space for the button) activates it.
  • Only one control per card, so there are no nested interactive elements; the action label is part of the whole-card control.
  • Fires an "action" event when the action button or the whole card is activated.
  • The tilt and spotlight follow the pointer only, and are off under reduced motion and in Enterprise mode.

Styling variables

Every look is a CSS variable: --kt-accent, --kt-accent-ink, --kt-radius-btn, --kt-surface-radius, --kt-surface-bg, --kt-border-w, --kt-comp-shadow and --font-sans. The copied file sets them all from your choices.

FAQ

Kinetic Card: questions answered

How do I use the Kinetic Card?

Press Copy on the card to get a complete HTML file, or copy the HTML, CSS and JavaScript tabs into your own page. In your markup the element is written as <kt-kinetic-card>.

Which attributes does <kt-kinetic-card> accept?

title, eyebrow, action, href, interactive. Each one is described in the attributes table on this page.

Is the Kinetic Card accessible?

A plain card is an article. With href it is one link, with interactive it is one button: Tab focuses it, Enter (and Space for the button) activates it. Only one control per card, so there are no nested interactive elements; the action label is part of the whole-card control. Fires an "action" event when the action button or the whole card is activated. The tilt and spotlight follow the pointer only, and are off under reduced motion and in Enterprise mode.

Can I change the Kinetic Card colors, corners and font?

Yes. Use the options on this page: accent color, border radius, background, border, shadow and Google font. The copied code already contains your choices, and every one of them is a CSS variable you can edit later.