remove shape :(
This commit is contained in:
parent
ff87480747
commit
04762e196f
|
@ -6,7 +6,6 @@ export * from './icon-button'
|
||||||
export * from './image'
|
export * from './image'
|
||||||
export * from './input'
|
export * from './input'
|
||||||
export * from './messages'
|
export * from './messages'
|
||||||
export * from './shape'
|
|
||||||
export * from './sidebar'
|
export * from './sidebar'
|
||||||
export * from './sidebar-members'
|
export * from './sidebar-members'
|
||||||
export * from './typography'
|
export * from './typography'
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
export * from './shape'
|
|
|
@ -1,39 +0,0 @@
|
||||||
import { Shape } from './shape'
|
|
||||||
|
|
||||||
// More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction
|
|
||||||
export default {
|
|
||||||
title: 'Example/Shape',
|
|
||||||
component: Shape,
|
|
||||||
tags: ['autodocs'],
|
|
||||||
argTypes: {
|
|
||||||
backgroundColor: { control: 'color' }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// More on writing stories with args: https://storybook.js.org/docs/7.0/react/writing-stories/args
|
|
||||||
export const Primary = {
|
|
||||||
args: {
|
|
||||||
primary: true,
|
|
||||||
label: 'Shape'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export const Secondary = {
|
|
||||||
args: {
|
|
||||||
label: 'Shape'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export const Large = {
|
|
||||||
args: {
|
|
||||||
size: 'large',
|
|
||||||
label: 'Shape'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export const Small = {
|
|
||||||
args: {
|
|
||||||
size: 'small',
|
|
||||||
label: 'Shape'
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
import { Stack, styled } from '@tamagui/core'
|
|
||||||
|
|
||||||
export const Shape = styled(Stack, {
|
|
||||||
backgroundColor: '$primary',
|
|
||||||
width: 100,
|
|
||||||
height: 100,
|
|
||||||
cursor: 'pointer',
|
|
||||||
animation: 'fast',
|
|
||||||
borderRadius: '$4',
|
|
||||||
hoverStyle: {
|
|
||||||
backgroundColor: '$primaryHover',
|
|
||||||
},
|
|
||||||
pressStyle: {
|
|
||||||
backgroundColor: '$primaryHover',
|
|
||||||
},
|
|
||||||
})
|
|
Loading…
Reference in New Issue