TextButton
Imports
import {TextButton} from 'material-expressive-react';
import {TextButton} from 'material-expressive-react/button';
Props
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| disabled | boolean | No | ||
| form | string | No | Associates the button with a form by id (sets the form attribute). | |
| href | string | No | ||
| name | string | No | ||
| size | enum | medium | No | |
| target | string | No | ||
| trailingIcon | boolean | No | ||
| type | enum | No | ||
| value | string | No |
Events
This component does not explicitly re-emit DOM events via wrapper props.
Slots
Material Web components frequently use named slots. In React, you can pass slot="..." on children (e.g. <Icon slot="icon" />).
If you need to slot a child component that does not accept a slot prop, use the Slotted utility (see Utilities → Slotted).
Examples
See Storybook for live examples and variants.