SemanticButton
An unstyled button element. Use to make a custom element clickable while keeping keyboard and screen-reader behaviour.
Health
Source
Storybook
Playground
No Example
Accessibility
compliant
Platform
Universal
- Overview
- Props
Allows you to use a button tag without any default styles. This is useful when you want to make clickable elements that don't look like buttons.
Basic usage
import { SemanticButton } from "murray";
<SemanticButton onPress={() => alert("Hello!")}>{/* your markup */}</SemanticButton>;
What's under the hood
It's basically a Box with a tag set to Button, then it supports all the props of Box.
<SemanticButton sx={{ border: 1, borderColor: "$grey100" }}>{/* your markup */}</SemanticButton>
Don't use direct text node children
As it's a Box, you can't directly pass a text node as a child. You need to wrap it in a Text component.
// Don't
<SemanticButton onPress={}>Hello</SemanticButton>
// Do
<SemanticButton onPress={}>
<Text>Hello</Text>
</SemanticButton>
Don't use it for navigation
If you want to make a navigation link or an external link, use A instead.
Playground
Loading...
tip
This component is universal, its usage is the same in
murray and murray/mobile.SemanticButton props
| Name | Type | Default Value | Description | Usage count |
|---|---|---|---|---|
| css | 12 possibilitiesundefinednullstringnumberfalsetrueComponentSelectorKeyframesSerializedStylesCSSObjectArrayInterpolation<Theme>FunctionInterpolation<Theme> | |||
| onKeyDown | ((e: KeyboardEvent) => void)undefined | |||
| sx | 150 possibilitiesundefinedOmit<StackStyle, `$${string}` | PhysicalDirectionProperties> & { [x: `$theme-${string}`]: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; $xs?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $ltVs?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $vs?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $ltSm?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $sm?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $ltMd?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $md?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $ltLg?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $lg?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $ltXl?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $xl?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $ltXxl?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $xxl?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; "$group-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xs"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltVs"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-vs"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltSm"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-sm"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltMd"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-md"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltLg"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-lg"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXl"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xl"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXxl"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xxl"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xs-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xs-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xs-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xs-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xs-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltVs-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltVs-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltVs-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltVs-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltVs-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-vs-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-vs-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-vs-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-vs-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-vs-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltSm-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltSm-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltSm-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltSm-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltSm-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-sm-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-sm-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-sm-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-sm-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-sm-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltMd-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltMd-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltMd-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltMd-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltMd-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-md-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-md-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-md-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-md-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-md-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltLg-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltLg-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltLg-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltLg-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltLg-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-lg-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-lg-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-lg-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-lg-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-lg-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXl-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXl-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXl-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXl-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXl-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xl-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xl-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xl-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xl-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xl-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXxl-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXxl-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXxl-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXxl-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXxl-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xxl-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xxl-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xxl-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xxl-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xxl-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$platform-ios"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$platform-android"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$platform-web"?: OmitPhysicalDeep<AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>>undefined; "$platform-native"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; } & { shadowPreset?: "xs""sm""md""lg""xs-inverted""sm-inverted""md-inverted""lg-inverted"undefined; } | |||
| title | stringundefined | |||
| type | "button""submit""reset"undefined | button |
Undocumented props
| Name | Type | Default Value | Description | Usage count |
|---|---|---|---|---|
| aria-checked | any | |||
| aria-controls | any | |||
| aria-current | any | |||
| aria-expanded | any | |||
| aria-hidden | any | |||
| aria-label | any | |||
| aria-pressed | any | |||
| aria-selected | any | |||
| asChild | any | |||
| className | any | |||
| data-asset-id | any | |||
| data-step | any | |||
| disabled | any | |||
| hitSlop | any | |||
| id | any | |||
| onFocus | any | |||
| onHoverIn | any | |||
| onHoverOut | any | |||
| onLayout | any | |||
| onMouseEnter | any | |||
| onMouseLeave | any | |||
| onPointerDown | any | |||
| onPress | any | |||
| ref | any | |||
| role | any | |||
| tabIndex | any |
Style API
Use sx for one-off adjustments. It accepts these style keys:
alignContentalignItemsalignSelfanimateOnlyanimatePresenceanimationaspectRatiobackdropFilterbackfaceVisibilitybackgroundbackgroundAttachmentbackgroundBlendModebackgroundClipbackgroundColorbackgroundImagebackgroundOriginbackgroundPositionbackgroundRepeatbackgroundSizeblockSizeborderBlockColorborderBlockEndColorborderBlockEndStyleborderBlockEndWidthborderBlockStartColorborderBlockStartStyleborderBlockStartWidthborderBlockStyleborderBlockWidthborderBottomColorborderBottomEndRadiusborderBottomStartRadiusborderBottomWidthborderColorborderCurveborderEndColorborderEndEndRadiusborderEndStartRadiusborderEndWidthborderImageborderInlineColorborderInlineEndColorborderInlineEndStyleborderInlineEndWidthborderInlineStartColorborderInlineStartStyleborderInlineStartWidthborderInlineStyleborderInlineWidthborderRadiusborderStartColorborderStartEndRadiusborderStartStartRadiusborderStartWidthborderStyleborderTopColorborderTopEndRadiusborderTopStartRadiusborderTopWidthborderWidthbottomboxShadowboxSizingcaretColorclipPathcolumnGapcontaincontainerTypecontentcursordirectiondisabledStyledisplayendenterStyleexitStyleexperimental_backgroundImageexperimental_backgroundPositionexperimental_backgroundRepeatexperimental_backgroundSizefilterflexflexBasisflexDirectionflexGrowflexShrinkflexWrapfloatfocusStylefocusVisibleStylefocusWithinStylegapgridColumngridColumnEndgridColumnGapgridColumnStartgridRowgridRowEndgridRowGapgridRowStartgridTemplateAreasgridTemplateColumnsheighthoverStyleinlineSizeinsetinsetBlockinsetBlockEndinsetBlockStartinsetInlineinsetInlineEndinsetInlineStartisolationjustifyContentmarginmarginBlockmarginBlockEndmarginBlockStartmarginBottommarginEndmarginHorizontalmarginInlinemarginInlineEndmarginInlineStartmarginStartmarginTopmarginVerticalmaskmaskBordermaskBorderModemaskBorderOutsetmaskBorderRepeatmaskBorderSlicemaskBorderSourcemaskBorderWidthmaskClipmaskCompositemaskImagemaskModemaskOriginmaskPositionmaskRepeatmaskSizemaskTypematrixmaxBlockSizemaxHeightmaxInlineSizemaxWidthminBlockSizeminHeightminInlineSizeminWidthmixBlendModeobjectFitopacityoutlineColoroutlineOffsetoutlineStyleoutlineWidthoverflowoverflowBlockoverflowInlinepaddingpaddingBlockpaddingBlockEndpaddingBlockStartpaddingBottompaddingEndpaddingHorizontalpaddingInlinepaddingInlineEndpaddingInlineStartpaddingStartpaddingToppaddingVerticalpassThroughperspectivepointerEventspositionpressStylerotaterotateXrotateYrotateZrotationrowGapscalescaleXscaleYscrollbarWidthseparatorshadowColorshadowOffsetshadowOpacityshadowPresetshadowRadiusskewXskewYspacespaceDirectionstarttextEmphasistextWraptoptouchActiontransformtransformMatrixtransformOrigintransformStyletransitiontranslateXtranslateYuserSelectverticalAlignwidthxyzIndex
Each can be overridden per breakpoint with:
$group-focus$group-focusVisible$group-focusWithin$group-hover$group-lg$group-lg-focus$group-lg-focusVisible$group-lg-focusWithin$group-lg-hover$group-lg-press$group-ltLg$group-ltLg-focus$group-ltLg-focusVisible$group-ltLg-focusWithin$group-ltLg-hover$group-ltLg-press$group-ltMd$group-ltMd-focus$group-ltMd-focusVisible$group-ltMd-focusWithin$group-ltMd-hover$group-ltMd-press$group-ltSm$group-ltSm-focus$group-ltSm-focusVisible$group-ltSm-focusWithin$group-ltSm-hover$group-ltSm-press$group-ltVs$group-ltVs-focus$group-ltVs-focusVisible$group-ltVs-focusWithin$group-ltVs-hover$group-ltVs-press$group-ltXl$group-ltXl-focus$group-ltXl-focusVisible$group-ltXl-focusWithin$group-ltXl-hover$group-ltXl-press$group-ltXxl$group-ltXxl-focus$group-ltXxl-focusVisible$group-ltXxl-focusWithin$group-ltXxl-hover$group-ltXxl-press$group-md$group-md-focus$group-md-focusVisible$group-md-focusWithin$group-md-hover$group-md-press$group-press$group-sm$group-sm-focus$group-sm-focusVisible$group-sm-focusWithin$group-sm-hover$group-sm-press$group-vs$group-vs-focus$group-vs-focusVisible$group-vs-focusWithin$group-vs-hover$group-vs-press$group-xl$group-xl-focus$group-xl-focusVisible$group-xl-focusWithin$group-xl-hover$group-xl-press$group-xs$group-xs-focus$group-xs-focusVisible$group-xs-focusWithin$group-xs-hover$group-xs-press$group-xxl$group-xxl-focus$group-xxl-focusVisible$group-xxl-focusWithin$group-xxl-hover$group-xxl-press$lg$ltLg$ltMd$ltSm$ltVs$ltXl$ltXxl$md$platform-android$platform-ios$platform-native$platform-web$sm$vs$xl$xs$xxl