Skip to content

InkWell

A rectangular area of a Material that responds to touch.

Usage

Tap Me
vue
<template>
  <Container :width="100" :height="100" color="#e0e0e0">
    <InkWell @tap="onTap">
      <Center>
        <Text>Tap Me</Text>
      </Center>
    </InkWell>
  </Container>
</template>

<script setup lang="ts">
import { Container, InkWell, Center, Text } from "fluekit";

const onTap = () => {
  console.log("InkWell tapped");
};
</script>

API

Props

NameTypeDefaultDescription
splashColorstring'rgba(0, 0, 0, 0.1)'The splash color of the ink response.
highlightColorstring-The highlight color of the ink response when pressed.
borderRadiusstring-The clipping radius of the splash (CSS border-radius).
disabledbooleanfalseWhether the ink well is disabled.

Events

NameDescription
tapTriggered when the ink well is tapped.