Slice TypeA typographic magic trick.

TypographyHero sectionEditorialBrand site

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/slice-type
2

For dark mode, add the dark class to your <html> element:

Optional
<html class="dark">

Install with AI Canvas MCP

With AI Canvas MCP, your AI knows every component we ship. Ask for one inside Claude Code, Codex, or Cursor and it installs the component you pick. Works with any AI Canvas account, free or premium.

About Slice Type

Slice Type is a typographic magic trick: at rest you read one ambiguous word, but as you hover the letters slice horizontally — LIGHT lifting up, NIGHT sinking down — and the shared glyphs resolve into two separate words. The split is driven by Motion handling the vertical translations, with a canvas layer for the gradient masking that makes the cut feel clean. Use it for hero sections, brand sites, and editorial layouts where the headline itself is the surprise.

Built with

MotionCanvasTailwind CSS

Frequently asked questions

Is Slice Type free to use?
Yes. Slice Type is part of the free AI Canvas library and is open source under the MIT license, so you can use it in personal and commercial projects.
How do I install Slice Type?
One command: npx shadcn@latest add https://aicanvas.me/r/slice-type.json, free with a free AI Canvas account. Or connect the AI Canvas MCP server and ask your AI editor to install Slice Type for you. You can also copy the source straight from the Code tab, no account needed. It works in any React project with Tailwind CSS.
What is Slice Type built with?
Slice Type is built with React and TypeScript, using Motion, Canvas, and Tailwind CSS.
Where would I use Slice Type?
Common uses include Hero section, Editorial, and Brand site. Like every AI Canvas component, it is self-contained and drops into any React project.
Can I remix Slice Type with AI?
Yes. Slice Type ships with one comprehensive AI prompt written against the real source code. Open "Remix with AI" on this page to read and copy it into Claude, Cursor, ChatGPT, or any AI tool. Prompts are for remixing your own variation; for the exact component, install it with the one-command CLI.

Featured in collections

More like this